patch-2.3.11 linux/drivers/pci/oldproc.c

Next file: linux/drivers/scsi/aic7xxx.c
Previous file: linux/drivers/nubus/nubus.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.10/linux/drivers/pci/oldproc.c linux/drivers/pci/oldproc.c
@@ -903,11 +903,11 @@
 			       vendor, device);
 	}
 
-	str = 0;	/* to keep gcc shut... */
 	switch (status & PCI_STATUS_DEVSEL_MASK) {
 	      case PCI_STATUS_DEVSEL_FAST:   str = "Fast devsel.  "; break;
 	      case PCI_STATUS_DEVSEL_MEDIUM: str = "Medium devsel.  "; break;
 	      case PCI_STATUS_DEVSEL_SLOW:   str = "Slow devsel.  "; break;
+	      default:			     str = "Unknown devsel.  ";
 	}
 	if (len + strlen(str) > size) {
 		return -1;

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