Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Mar 2017 06:34:45 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r315809 - stable/10/sys/dev/mpt
Message-ID:  <201703230634.v2N6YjkX052017@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Thu Mar 23 06:34:45 2017
New Revision: 315809
URL: https://svnweb.freebsd.org/changeset/base/315809

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

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

Modified: stable/10/sys/dev/mpt/mpt_pci.c
==============================================================================
--- stable/10/sys/dev/mpt/mpt_pci.c	Thu Mar 23 06:34:15 2017	(r315808)
+++ stable/10/sys/dev/mpt/mpt_pci.c	Thu Mar 23 06:34:45 2017	(r315809)
@@ -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?201703230634.v2N6YjkX052017>