Thread (1 message) 1 message, 1 author, 2004-11-11
DORMANTno replies

[PATCH] (11/23) sk98: board counter incremented twice

From: Stephen Hemminger <hidden>
Date: 2004-11-11 23:57:53

Minor bug, bourd found incremented twice. Also don't need to
initialize fields already zerod.

Signed-off-by: Stephen Hemminger <redacted>

diff -Nru a/drivers/net/sk98lin/skge.c b/drivers/net/sk98lin/skge.c
--- a/drivers/net/sk98lin/skge.c	2004-11-03 15:09:28 -08:00
+++ b/drivers/net/sk98lin/skge.c	2004-11-03 15:09:28 -08:00
@@ -4972,11 +4972,6 @@
 	}
 #endif
 
-	pNet->PortNr = 0;
-	pNet->NetNr  = 0;
-
-	boards_found++;
-
 	/* More then one port found */
 	if ((pAC->GIni.GIMacsFound == 2 ) && (pAC->RlmtNets == 2)) {
 		if ((dev = alloc_etherdev(sizeof(DEV_NET))) == 0) {
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help