patch-2.4.20 linux-2.4.20/drivers/char/mxser.c

Next file: linux-2.4.20/drivers/char/nvram.c
Previous file: linux-2.4.20/drivers/char/mwave/smapi.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/drivers/char/mxser.c linux-2.4.20/drivers/char/mxser.c
@@ -653,7 +653,7 @@
 		n = (sizeof(mxser_pcibrds) / sizeof(mxser_pcibrds[0])) - 1;
 		index = 0;
 		for (b = 0; b < n; b++) {
-			while (pdev = pci_find_device(mxser_pcibrds[b].vendor, mxser_pcibrds[b].device, pdev)) 
+			while ((pdev = pci_find_device(mxser_pcibrds[b].vendor, mxser_pcibrds[b].device, pdev)) != NULL)
 			{
 				if (pci_enable_device(pdev))
 					continue;

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