# --------------------------------------------
# 02/10/17	thockin@freakshow.cobalt.com	1.737.3.8
# drivers/net/eepro100.c: compile bugs
# --------------------------------------------
#
diff -Nru a/drivers/net/eepro100.c b/drivers/net/eepro100.c
--- a/drivers/net/eepro100.c	Wed Oct 23 21:16:27 2002
+++ b/drivers/net/eepro100.c	Wed Oct 23 21:16:27 2002
@@ -324,26 +324,6 @@
 #define outl writel
 #endif
 
-/* How to wait for the command unit to accept a command.
-   Typically this takes 0 ticks. */
-static inline unsigned char wait_for_cmd_done(struct net_device *dev)
-{
-	int wait = 1000;
-	long cmd_ioaddr = dev->base_addr + SCBCmd;
-	unsigned char r;
-
-	do  {
-		udelay(1);
-		r = inb(cmd_ioaddr);
-	} while(r && --wait >= 0);
-
-#ifndef final_version
-	if (wait < 0)
-		printk(KERN_ALERT "%s: wait_for_cmd_done timeout!\n", dev->name);
-#endif
-	return r;
-}
-
 /* Offsets to the various registers.
    All accesses need not be longword aligned. */
 enum speedo_offsets {
@@ -576,6 +556,26 @@
 						   0x2000, 0x2100, 0x0400, 0x3100};
 #endif
 
+/* How to wait for the command unit to accept a command.
+   Typically this takes 0 ticks. */
+static inline unsigned char wait_for_cmd_done(struct net_device *dev)
+{
+	int wait = 1000;
+	long cmd_ioaddr = dev->base_addr + SCBCmd;
+	unsigned char r;
+
+	do  {
+		udelay(1);
+		r = inb(cmd_ioaddr);
+	} while(r && --wait >= 0);
+
+#ifndef final_version
+	if (wait < 0)
+		printk(KERN_ALERT "%s: wait_for_cmd_done timeout!\n", dev->name);
+#endif
+	return r;
+}
+
 static int __devinit eepro100_init_one (struct pci_dev *pdev,
 		const struct pci_device_id *ent)
 {
@@ -1575,7 +1575,6 @@
 	if (onoff) {
 		/* enable */
 		outb(sp->intmask, ioaddr + SCBIntmask);
-		break;
 	} else {
 		/* disable */
 		sp->intmask = inb(ioaddr + SCBIntmask);
