Date: Thu, 23 Mar 2017 06:34:15 +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-11@freebsd.org Subject: svn commit: r315808 - stable/11/sys/dev/mpt Message-ID: <201703230634.v2N6YFLV051944@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703230634.v2N6YFLV051944>