diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 8d4d422..7d1024d 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -129,10 +129,7 @@ { struct pci_dev *dev; - dev = kzalloc(sizeof(struct pci_dev), GFP_KERNEL); - if (!dev) - return NULL; - + dev = xzalloc(sizeof(struct pci_dev)); INIT_LIST_HEAD(&dev->bus_list); return dev; @@ -367,9 +364,6 @@ continue; dev = alloc_pci_dev(); - if (!dev) - return 0; - dev->bus = bus; dev->devfn = devfn; dev->vendor = l & 0xffff;