From 4466486fb67e8c5ae0de32b865a7e13975deaa83 Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Tue, 9 Aug 2016 15:52:17 +0000 Subject: [PATCH] Remove NULL check after M_WAITOK allocation from mpt(4). MFC after: 1 month --- sys/dev/mpt/mpt_pci.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/mpt/mpt_pci.c b/sys/dev/mpt/mpt_pci.c index b014874e555..7caf6d4f568 100644 --- a/sys/dev/mpt/mpt_pci.c +++ b/sys/dev/mpt/mpt_pci.c @@ -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. -- 2.45.2