Remove now unneeded find_pci().
authorKevin O'Connor <kevin@koconnor.net>
Sat, 9 Jul 2011 18:49:13 +0000 (14:49 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 10 Jul 2011 19:36:04 +0000 (15:36 -0400)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/boot.c

index 4e86477e8b7d20959ccccc0831af48931b765b79..119f29007de5fa8b14ad590f281e07ccc4b90145 100644 (file)
@@ -98,22 +98,9 @@ find_prio(const char *glob)
 
 #define FW_PCI_DOMAIN "/pci@i0cf8"
 
-static struct pci_device *
-find_pci(u16 bdf)
-{
-    struct pci_device *pci;
-    foreachpci(pci) {
-        if (pci->bdf == bdf)
-            return pci;
-    }
-    return NULL;
-}
-
 static char *
 build_pci_path(char *buf, int max, const char *devname, struct pci_device *pci)
 {
-    if (!pci)
-        return buf;
     // Build the string path of a bdf - for example: /pci@i0cf8/isa@1,2
     char *p = buf;
     if (pci->parent) {