diff options
author | Thiago Farina <tfransosi@gmail.com> | 2010-01-11 20:45:26 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 14:54:22 -0800 |
commit | 08add0c780b9f5c35de49d83abb7a4e14a9cd457 (patch) | |
tree | d1bbb90447378bc95026f389acdd3f7770b4dd67 /drivers/usb/atm/usbatm.c | |
parent | a74171005f2f6474e05bdfccb05c9f0d68224a49 (diff) | |
download | linux-08add0c780b9f5c35de49d83abb7a4e14a9cd457.tar.bz2 |
USB: atm: Use FIELD_SIZEOF, trivial cleanup.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/atm/usbatm.c')
-rw-r--r-- | drivers/usb/atm/usbatm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/atm/usbatm.c b/drivers/usb/atm/usbatm.c index 40380434ba96..9b53e8df4648 100644 --- a/drivers/usb/atm/usbatm.c +++ b/drivers/usb/atm/usbatm.c @@ -1349,7 +1349,7 @@ static int __init usbatm_usb_init(void) { dbg("%s: driver version %s", __func__, DRIVER_VERSION); - if (sizeof(struct usbatm_control) > sizeof(((struct sk_buff *) 0)->cb)) { + if (sizeof(struct usbatm_control) > FIELD_SIZEOF(struct sk_buff, cb)) { printk(KERN_ERR "%s unusable with this kernel!\n", usbatm_driver_name); return -EIO; } |