svn commit: r315808 - stable/11/sys/dev/mpt

Alexander Motin mav at FreeBSD.org
Thu Mar 23 06:34:17 UTC 2017


Author: mav
Date: Thu Mar 23 06:34:15 2017
New Revision: 315808
URL: https://svnweb.freebsd.org/changeset/base/315808

Log:
  MFC r303874 (by trasz):
  Remove NULL check after M_WAITOK allocation from mpt(4).

Modified:
  stable/11/sys/dev/mpt/mpt_pci.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/mpt/mpt_pci.c
==============================================================================
--- stable/11/sys/dev/mpt/mpt_pci.c	Thu Mar 23 06:31:03 2017	(r315807)
+++ stable/11/sys/dev/mpt/mpt_pci.c	Thu Mar 23 06:34:15 2017	(r315808)
@@ -654,10 +654,6 @@ mpt_dma_mem_alloc(struct mpt_softc *mpt)
 
 	len = sizeof (request_t) * MPT_MAX_REQUESTS(mpt);
 	mpt->request_pool = (request_t *)malloc(len, M_DEVBUF, M_WAITOK|M_ZERO);
-	if (mpt->request_pool == NULL) {
-		mpt_prt(mpt, "cannot allocate request pool\n");
-		return (1);
-	}
 
 	/*
 	 * Create a parent dma tag for this device.


More information about the svn-src-stable-11 mailing list