projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a741710
)
USB: atm: Use FIELD_SIZEOF, trivial cleanup.
author
Thiago Farina
<tfransosi@gmail.com>
Tue, 12 Jan 2010 01:45:26 +0000
(20:45 -0500)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 2 Mar 2010 22:54:22 +0000
(14:54 -0800)
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/atm/usbatm.c
patch
|
blob
|
history
diff --git
a/drivers/usb/atm/usbatm.c
b/drivers/usb/atm/usbatm.c
index 40380434ba96657e440f59fd13ec729543ca2ea0..9b53e8df464814a05b74fbef822d57554a11ce8e 100644
(file)
--- 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;
}