svn commit: r278860 - head/sys/dev/pci

John-Mark Gurney jmg at FreeBSD.org
Mon Feb 16 18:43:53 UTC 2015


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;
 


More information about the svn-src-head mailing list