summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-31 03:55:02 +0000
committerngie <ngie@FreeBSD.org>2015-12-31 03:55:02 +0000
commitb3192fe1f63931ed177ee642c5ab893d0a486413 (patch)
tree398dbb97fa168377ee37021bd052a5cf189837e2 /sys/dev/pci
parentfded02003e724b80208f48e3cbc0eddcc31f4767 (diff)
downloadFreeBSD-src-b3192fe1f63931ed177ee642c5ab893d0a486413.zip
FreeBSD-src-b3192fe1f63931ed177ee642c5ab893d0a486413.tar.gz
MFC r278860:
r278860 (by jmg): remove NULL check as M_WAITOK will not return NULL Reviewed by: jhb Sponsored by: FreeBSD Foundation
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index a9c33ae..e08237b 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -615,8 +615,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;
OpenPOWER on IntegriCloud