summaryrefslogtreecommitdiffstats
path: root/drivers/usb/net/usbnet.c
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-10-08 14:02:00 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2006-10-17 23:46:32 +0200
commitf8ac232ad7388bfff680b26e84b3ac63889d1cea (patch)
treef6961b189ec82c63d0eae24428c8d251d27fd302 /drivers/usb/net/usbnet.c
parentusbcore: fix endpoint device creation (diff)
downloadlinux-f8ac232ad7388bfff680b26e84b3ac63889d1cea.tar.xz
linux-f8ac232ad7388bfff680b26e84b3ac63889d1cea.zip
USB: drivers/usb/net/*: use BUILD_BUG_ON
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/net/usbnet.c')
-rw-r--r--drivers/usb/net/usbnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/net/usbnet.c b/drivers/usb/net/usbnet.c
index 24bd3486ee63..af6d061dc79b 100644
--- a/drivers/usb/net/usbnet.c
+++ b/drivers/usb/net/usbnet.c
@@ -1225,7 +1225,7 @@ EXPORT_SYMBOL_GPL(usbnet_resume);
static int __init usbnet_init(void)
{
/* compiler should optimize this out */
- BUG_ON (sizeof (((struct sk_buff *)0)->cb)
+ BUILD_BUG_ON (sizeof (((struct sk_buff *)0)->cb)
< sizeof (struct skb_data));
random_ether_addr(node_id);