Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Aug 2016 15:52:17 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r303874 - head/sys/dev/mpt
Message-ID:  <201608091552.u79FqHgM084166@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Tue Aug  9 15:52:17 2016
New Revision: 303874
URL: https://svnweb.freebsd.org/changeset/base/303874

Log:
  Remove NULL check after M_WAITOK allocation from mpt(4).
  
  MFC after:	1 month

Modified:
  head/sys/dev/mpt/mpt_pci.c

Modified: head/sys/dev/mpt/mpt_pci.c
==============================================================================
--- head/sys/dev/mpt/mpt_pci.c	Tue Aug  9 15:51:11 2016	(r303873)
+++ head/sys/dev/mpt/mpt_pci.c	Tue Aug  9 15:52:17 2016	(r303874)
@@ -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.



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