mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
remove NULL check as M_WAITOK will not return NULL
Reviewed by: jhb Sponsored by: FreeBSD Foundation
This commit is contained in:
parent
f0b0fe5b45
commit
69d4c287d3
1 changed files with 0 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue