svn commit: r315809 - stable/10/sys/dev/mpt
Alexander Motin
mav at FreeBSD.org
Thu Mar 23 06:34:46 UTC 2017
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.
More information about the svn-src-stable-10
mailing list