Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent 5e4011e2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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;