svn commit: r303874 - head/sys/dev/mpt
Edward Tomasz Napierala
trasz at FreeBSD.org
Tue Aug 9 15:52:18 UTC 2016
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.
More information about the svn-src-head
mailing list