From 69d4c287d39f2227129102d60b5bb638ace3070f Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Mon, 16 Feb 2015 18:43:52 +0000 Subject: [PATCH] remove NULL check as M_WAITOK will not return NULL Reviewed by: jhb Sponsored by: FreeBSD Foundation --- sys/dev/pci/pci.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 263904bc178..ba5a333abbf 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -605,8 +605,6 @@ pci_read_device(device_t pcib, int d, int b, int s, int f, size_t size) if (REG(PCIR_DEVVENDOR, 4) != 0xfffffffful) { devlist_entry = malloc(size, M_DEVBUF, M_WAITOK | M_ZERO); - if (devlist_entry == NULL) - return (NULL); cfg = &devlist_entry->cfg;