Commit c582a950 authored by Thiago Farina's avatar Thiago Farina Committed by David S. Miller

drivers/net/usb/usbnet.c: Use FIELD_SIZEOF macro in usbnet_init() function.

Signed-off-by: default avatarThiago Farina <tfransosi@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5e4011e2
...@@ -1529,9 +1529,9 @@ EXPORT_SYMBOL_GPL(usbnet_resume); ...@@ -1529,9 +1529,9 @@ EXPORT_SYMBOL_GPL(usbnet_resume);
static int __init usbnet_init(void) static int __init usbnet_init(void)
{ {
/* compiler should optimize this out */ /* Compiler should optimize this out. */
BUILD_BUG_ON (sizeof (((struct sk_buff *)0)->cb) BUILD_BUG_ON(
< sizeof (struct skb_data)); FIELD_SIZEOF(struct sk_buff, cb) < sizeof(struct skb_data));
random_ether_addr(node_id); random_ether_addr(node_id);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment