]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/ne2k-pci.c
V4L/DVB (4244): Implement use of cx2341x module in pvrusb2 driver
[linux-2.6-omap-h63xx.git] / drivers / net / ne2k-pci.c
index e3ebb5803b023c62f0fd0a940b4d52d3696c9690..ced9fdb8335cc4225639cf49d67612d066833a31 100644 (file)
@@ -117,7 +117,7 @@ enum ne2k_pci_chipsets {
 };
 
 
-static const struct {
+static struct {
        char *name;
        int flags;
 } pci_clone_list[] __devinitdata = {
@@ -645,9 +645,7 @@ static void __devexit ne2k_pci_remove_one (struct pci_dev *pdev)
 {
        struct net_device *dev = pci_get_drvdata(pdev);
 
-       if (!dev)
-               BUG();
-
+       BUG_ON(!dev);
        unregister_netdev(dev);
        release_region(dev->base_addr, NE_IO_EXTENT);
        free_netdev(dev);