Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[linux-2.6-microblaze.git] / drivers / atm / idt77252.c
index 5f0472c..0c13cac 100644 (file)
@@ -3743,16 +3743,7 @@ static int __init idt77252_init(void)
        struct sk_buff *skb;
 
        printk("%s: at %p\n", __func__, idt77252_init);
-
-       if (sizeof(skb->cb) < sizeof(struct atm_skb_data) +
-                             sizeof(struct idt77252_skb_prv)) {
-               printk(KERN_ERR "%s: skb->cb is too small (%lu < %lu)\n",
-                      __func__, (unsigned long) sizeof(skb->cb),
-                      (unsigned long) sizeof(struct atm_skb_data) +
-                                      sizeof(struct idt77252_skb_prv));
-               return -EIO;
-       }
-
+       BUILD_BUG_ON(sizeof(skb->cb) < sizeof(struct idt77252_skb_prv) + sizeof(struct atm_skb_data));
        return pci_register_driver(&idt77252_driver);
 }