diff options
author | ngie <ngie@FreeBSD.org> | 2015-12-31 03:55:02 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-12-31 03:55:02 +0000 |
commit | b3192fe1f63931ed177ee642c5ab893d0a486413 (patch) | |
tree | 398dbb97fa168377ee37021bd052a5cf189837e2 | |
parent | fded02003e724b80208f48e3cbc0eddcc31f4767 (diff) | |
download | FreeBSD-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
-rw-r--r-- | sys/dev/pci/pci.c | 2 |
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; |