Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Feb 2015 18:43:53 +0000 (UTC)
From:      John-Mark Gurney <jmg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r278860 - head/sys/dev/pci
Message-ID:  <201502161843.t1GIhrQ1077428@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502161843.t1GIhrQ1077428>