patch-2.3.23 linux/drivers/pci/helper.c
Next file: linux/drivers/pci/pci.c
Previous file: linux/drivers/net/via-rhine.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Tue Oct 19 13:48:24 1999
-  Orig file: 
v2.3.22/linux/drivers/pci/helper.c
-  Orig date: 
Sat Oct  9 11:47:50 1999
diff -u --recursive --new-file v2.3.22/linux/drivers/pci/helper.c linux/drivers/pci/helper.c
@@ -57,7 +57,7 @@
 			if (match_limit && match_limit == matches)
 				return matches;
 
-			ent++;
+			break; /* stop list search on first match */
 		}
 
 		dev = pci_find_device (PCI_ANY_ID, PCI_ANY_ID, dev);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)