From: Thiago Farina Date: Tue, 12 Jan 2010 01:45:26 +0000 (-0500) Subject: USB: atm: Use FIELD_SIZEOF, trivial cleanup. X-Git-Tag: v2.6.34-rc1~215^2~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08add0c780b9f5c35de49d83abb7a4e14a9cd457;p=platform%2Fupstream%2Fkernel-adaptation-pc.git USB: atm: Use FIELD_SIZEOF, trivial cleanup. Signed-off-by: Thiago Farina Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/atm/usbatm.c b/drivers/usb/atm/usbatm.c index 4038043..9b53e8d 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; }