patch-1.3.21 linux/drivers/net/net_init.c

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

diff -u --recursive --new-file v1.3.20/linux/drivers/net/net_init.c linux/drivers/net/net_init.c
@@ -341,13 +341,13 @@
 			restore_flags(flags);
 			return;
 		}
-		for (i = 0; i < MAX_ETH_CARDS; ++i) 
+	}
+	for (i = 0; i < MAX_ETH_CARDS; ++i) 
+	{
+		if (ethdev_index[i] == dev) 
 		{
-			if (ethdev_index[i] == dev) 
-			{
-				ethdev_index[i] = NULL;
-				break;
-			}
+			ethdev_index[i] = NULL;
+			break;
 		}
 	}
 	restore_flags(flags);

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