--- src/sys/bus/pci/pci.c 2007/11/28 11:35:40 1.50 +++ src/sys/bus/pci/pci.c 2008/01/06 16:55:49 1.51 @@ -228,8 +228,6 @@ pci_readppb(device_t pcib, int b, int s, pcih1cfgregs *p; p = kmalloc(sizeof (pcih1cfgregs), M_DEVBUF, M_WAITOK | M_ZERO); - if (p == NULL) - return (NULL); p->secstat = PCIB_READ_CONFIG(pcib, b, s, f, PCIR_SECSTAT_1, 2); p->bridgectl = PCIB_READ_CONFIG(pcib, b, s, f, PCIR_BRIDGECTL_1, 2); @@ -272,8 +270,6 @@ pci_readpcb(device_t pcib, int b, int s, pcih2cfgregs *p; p = kmalloc(sizeof (pcih2cfgregs), M_DEVBUF, M_WAITOK | M_ZERO); - if (p == NULL) - return (NULL); p->secstat = PCIB_READ_CONFIG(pcib, b, s, f, PCIR_SECSTAT_2, 2); p->bridgectl = PCIB_READ_CONFIG(pcib, b, s, f, PCIR_BRIDGECTL_2, 2); @@ -344,8 +340,6 @@ pci_read_device(device_t pcib, int b, in if (PCIB_READ_CONFIG(pcib, b, s, f, PCIR_DEVVENDOR, 4) != -1) { devlist_entry = kmalloc(size, M_DEVBUF, M_WAITOK | M_ZERO); - if (devlist_entry == NULL) - return (NULL); cfg = &devlist_entry->cfg;