patch-pre2.0.9 linux/drivers/net/ne.c

Next file: linux/drivers/net/ppp.c
Previous file: linux/drivers/net/eexpress.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.8/linux/drivers/net/ne.c linux/drivers/net/ne.c
@@ -229,6 +229,12 @@
 	}
     }
 
+    /* We should have a "dev" from Space.c or the static module table. */
+    if (dev == NULL) {
+	printk(KERN_ERR "ne.c: Passed a NULL device.\n");
+	dev = init_etherdev(0, 0);
+    }
+
     if (ei_debug  &&  version_printed++ == 0)
 	printk(version);
 
@@ -344,12 +350,6 @@
 	return ENXIO;
 #endif
 
-    }
-
-    /* We should have a "dev" from Space.c or the static module table. */
-    if (dev == NULL) {
-	printk("ne.c: Passed a NULL device.\n");
-	dev = init_etherdev(0, 0);
     }
 
     if (pci_irq_line) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this