diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-10-08 08:02:00 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-10-17 17:46:32 -0400 |
commit | f8ac232ad7388bfff680b26e84b3ac63889d1cea (patch) | |
tree | f6961b189ec82c63d0eae24428c8d251d27fd302 /drivers | |
parent | d5477c11111467e19787f00d3cab20fb48c2699e (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/net/cdc_ether.c | 2 | ||||
-rw-r--r-- | drivers/usb/net/usbnet.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/net/cdc_ether.c b/drivers/usb/net/cdc_ether.c index 82ce0358d9a3..f6971b88349d 100644 --- a/drivers/usb/net/cdc_ether.c +++ b/drivers/usb/net/cdc_ether.c | |||
@@ -498,7 +498,7 @@ static struct usb_driver cdc_driver = { | |||
498 | 498 | ||
499 | static int __init cdc_init(void) | 499 | static int __init cdc_init(void) |
500 | { | 500 | { |
501 | BUG_ON((sizeof(((struct usbnet *)0)->data) | 501 | BUILD_BUG_ON((sizeof(((struct usbnet *)0)->data) |
502 | < sizeof(struct cdc_state))); | 502 | < sizeof(struct cdc_state))); |
503 | 503 | ||
504 | return usb_register(&cdc_driver); | 504 | return usb_register(&cdc_driver); |
diff --git a/drivers/usb/net/usbnet.c b/drivers/usb/net/usbnet.c index 24bd3486ee63..af6d061dc79b 100644 --- a/drivers/usb/net/usbnet.c +++ b/drivers/usb/net/usbnet.c | |||
@@ -1225,7 +1225,7 @@ EXPORT_SYMBOL_GPL(usbnet_resume); | |||
1225 | static int __init usbnet_init(void) | 1225 | static int __init usbnet_init(void) |
1226 | { | 1226 | { |
1227 | /* compiler should optimize this out */ | 1227 | /* compiler should optimize this out */ |
1228 | BUG_ON (sizeof (((struct sk_buff *)0)->cb) | 1228 | BUILD_BUG_ON (sizeof (((struct sk_buff *)0)->cb) |
1229 | < sizeof (struct skb_data)); | 1229 | < sizeof (struct skb_data)); |
1230 | 1230 | ||
1231 | random_ether_addr(node_id); | 1231 | random_ether_addr(node_id); |