patch-2.3.43 linux/drivers/net/tokenring/smctr.c

Next file: linux/drivers/net/tulip.c
Previous file: linux/drivers/net/tlan.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/drivers/net/tokenring/smctr.c linux/drivers/net/tokenring/smctr.c
@@ -3684,13 +3684,7 @@
                 int ioaddr = smctr_portlist[i];
                 if(check_region(ioaddr, SMCTR_IO_EXTENT))
                         continue;
-                if(smctr_probe1(dev, ioaddr))
-                {
-#ifndef MODULE
-                        tr_freedev(dev);
-#endif
-                }
-                else
+                if (!smctr_probe1(dev, ioaddr))
                         return (0);
         }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)