summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci.c
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2015-02-16 18:43:52 +0000
committerjmg <jmg@FreeBSD.org>2015-02-16 18:43:52 +0000
commitb437ce82f15c3b486ddbbc0c3af6866f6168a0aa (patch)
treebc4ca6f39fa5529d6e935d6292d22452945a2b50 /sys/dev/pci/pci.c
parent2b3895f34555e2073e5bad5e87c98a7c1b792422 (diff)
downloadFreeBSD-src-b437ce82f15c3b486ddbbc0c3af6866f6168a0aa.zip
FreeBSD-src-b437ce82f15c3b486ddbbc0c3af6866f6168a0aa.tar.gz
remove NULL check as M_WAITOK will not return NULL
Reviewed by: jhb Sponsored by: FreeBSD Foundation
Diffstat (limited to 'sys/dev/pci/pci.c')
-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 263904b..ba5a333 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;
OpenPOWER on IntegriCloud