Commit f8ac232a authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Greg Kroah-Hartman
Browse files

USB: drivers/usb/net/*: use BUILD_BUG_ON


Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d5477c11
...@@ -498,7 +498,7 @@ static struct usb_driver cdc_driver = { ...@@ -498,7 +498,7 @@ static struct usb_driver cdc_driver = {
static int __init cdc_init(void) static int __init cdc_init(void)
{ {
BUG_ON((sizeof(((struct usbnet *)0)->data) BUILD_BUG_ON((sizeof(((struct usbnet *)0)->data)
< sizeof(struct cdc_state))); < sizeof(struct cdc_state)));
return usb_register(&cdc_driver); return usb_register(&cdc_driver);
......
...@@ -1225,7 +1225,7 @@ EXPORT_SYMBOL_GPL(usbnet_resume); ...@@ -1225,7 +1225,7 @@ 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 */
BUG_ON (sizeof (((struct sk_buff *)0)->cb) BUILD_BUG_ON (sizeof (((struct sk_buff *)0)->cb)
< sizeof (struct skb_data)); < sizeof (struct skb_data));
random_ether_addr(node_id); random_ether_addr(node_id);
......
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