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. _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"