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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
d5477c1111
commit
f8ac232ad7
@@ -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);
|
||||
|
Reference in New Issue
Block a user