diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/nbd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index a9bde30dadad..8bca4905d7f7 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c | |||
@@ -639,10 +639,7 @@ static int __init nbd_init(void) | |||
639 | int err = -ENOMEM; | 639 | int err = -ENOMEM; |
640 | int i; | 640 | int i; |
641 | 641 | ||
642 | if (sizeof(struct nbd_request) != 28) { | 642 | BUILD_BUG_ON(sizeof(struct nbd_request) != 28); |
643 | printk(KERN_CRIT "nbd: sizeof nbd_request needs to be 28 in order to work!\n" ); | ||
644 | return -EIO; | ||
645 | } | ||
646 | 643 | ||
647 | if (nbds_max > MAX_NBD) { | 644 | if (nbds_max > MAX_NBD) { |
648 | printk(KERN_CRIT "nbd: cannot allocate more than %u nbds; %u requested.\n", MAX_NBD, | 645 | printk(KERN_CRIT "nbd: cannot allocate more than %u nbds; %u requested.\n", MAX_NBD, |