Author: jmg
Date: Mon Feb 16 18:43:52 2015
New Revision: 278860
URL: https://svnweb.freebsd.org/changeset/base/278860
Log:
remove NULL check as M_WAITOK will not return NULL
Reviewed by: jhb
Sponsored by: FreeBSD Foundation
Modified:
head/sys/dev/pci/pci.c
Modified: head/sys/dev/pci/pci.c
==============================================================================
--- head/sys/dev/pci/pci.c Mon Feb 16 18:33:33 2015 (r278859)
+++ head/sys/dev/pci/pci.c Mon Feb 16 18:43:52 2015 (r278860)
@@ -605,8 +605,6 @@ pci_read_device(device_t pcib, int d, in
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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"