Commit 08add0c7 authored by Thiago Farina's avatar Thiago Farina Committed by Greg Kroah-Hartman

USB: atm: Use FIELD_SIZEOF, trivial cleanup.

Signed-off-by: default avatarThiago Farina <tfransosi@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a7417100
...@@ -1349,7 +1349,7 @@ static int __init usbatm_usb_init(void) ...@@ -1349,7 +1349,7 @@ static int __init usbatm_usb_init(void)
{ {
dbg("%s: driver version %s", __func__, DRIVER_VERSION); 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); printk(KERN_ERR "%s unusable with this kernel!\n", usbatm_driver_name);
return -EIO; return -EIO;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment