summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2004-03-01 01:12:22 +0000
committeroster <oster@NetBSD.org>2004-03-01 01:12:22 +0000
commite35e293611d437e243dc8e60bc44f60dceadddf2 (patch)
tree6a5e10980df107431c07fcb23298d457cf9403e5 /sys/dev/raidframe
parentc5864f334b4cb05bf66946c8d4f89daef8e6ef31 (diff)
We always wait until we get memory, so the NULL check doesn't buy us anything.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_reconmap.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/raidframe/rf_reconmap.c b/sys/dev/raidframe/rf_reconmap.c
index 4a1ae6a314f..61b8661842e 100644
--- a/sys/dev/raidframe/rf_reconmap.c
+++ b/sys/dev/raidframe/rf_reconmap.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_reconmap.c,v 1.22 2003/12/30 21:59:03 oster Exp $ */
+/* $NetBSD: rf_reconmap.c,v 1.23 2004/03/01 01:12:22 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -34,7 +34,7 @@
*************************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_reconmap.c,v 1.22 2003/12/30 21:59:03 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_reconmap.c,v 1.23 2004/03/01 01:12:22 oster Exp $");
#include "rf_raid.h"
#include <sys/time.h>
@@ -242,10 +242,6 @@ MakeReconMapListElem(RF_ReconMap_t *mapPtr, RF_SectorNum_t startSector,
RF_ReconMapListElem_t *p;
p = pool_get(&mapPtr->elem_pool, PR_WAITOK);
-
- if (p == NULL)
- return (NULL);
-
p->startSector = startSector;
p->stopSector = stopSector;
p->next = next;