Skip to content

Commit

Permalink
USB: atm: Use FIELD_SIZEOF, trivial cleanup.
Browse files Browse the repository at this point in the history
Signed-off-by: Thiago Farina <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
tfarina authored and gregkh committed Mar 2, 2010
1 parent a741710 commit 08add0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/atm/usbatm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 08add0c

Please sign in to comment.