mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
drivers/net/usb/usbnet.c: Use FIELD_SIZEOF macro in usbnet_init() function.
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5e4011e2b8
commit
c582a950b1
1 changed files with 3 additions and 3 deletions
|
@ -1529,9 +1529,9 @@ EXPORT_SYMBOL_GPL(usbnet_resume);
|
|||
|
||||
static int __init usbnet_init(void)
|
||||
{
|
||||
/* compiler should optimize this out */
|
||||
BUILD_BUG_ON (sizeof (((struct sk_buff *)0)->cb)
|
||||
< sizeof (struct skb_data));
|
||||
/* Compiler should optimize this out. */
|
||||
BUILD_BUG_ON(
|
||||
FIELD_SIZEOF(struct sk_buff, cb) < sizeof(struct skb_data));
|
||||
|
||||
random_ether_addr(node_id);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue