[syslinux] [PATCH 1/3] pci: remove (void)cfgtype;

Sebastian Herbszt herbszt at gmx.de
Sun Mar 22 12:48:33 PDT 2009


Remove "(void)cfgtype;" from com32/lib/pci/scan.c.

- Sebastian

Index: syslinux-3.74-pre11-2-g4fc8259/com32/lib/pci/scan.c
===================================================================
--- syslinux-3.74-pre11-2-g4fc8259.orig/com32/lib/pci/scan.c
+++ syslinux-3.74-pre11-2-g4fc8259/com32/lib/pci/scan.c
@@ -441,7 +441,6 @@ struct pci_domain *pci_scan(void)
   int cfgtype;
 
   cfgtype = pci_set_config_type(PCI_CFG_AUTO);
-  (void)cfgtype;
 
   dprintf("PCI configuration type %d\n", cfgtype);
   dprintf("Scanning PCI Buses\n");
@@ -521,7 +520,6 @@ void gather_additional_pci_config(struct
   pciaddr_t a;
   int cfgtype;
   cfgtype = pci_set_config_type(PCI_CFG_AUTO);
-  (void)cfgtype;
 
   for (nbus = 0; nbus < MAX_PCI_BUSES; nbus++) {
     bus = NULL;




More information about the Syslinux mailing list