summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2011-11-11 17:26:25 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2011-11-11 17:26:25 +0000
commit69c9e6746fe4e31945c9d2f735ea904a7db0e20e (patch)
treeb98ec9ded0fd33a89d593fdfb9fcf573da4af862 /sys
parent7e32234da5bb7f0962d492103007466beb22cad1 (diff)
Remove a bogus check which dereferences an uninitialised pointer.
From Pedro Martelletto. ok krw@ mikeb@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/softraid.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index 73421ceb131..f8942494d07 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.255 2011/11/11 17:23:39 jsing Exp $ */
+/* $OpenBSD: softraid.c,v 1.256 2011/11/11 17:26:24 jsing Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -2757,9 +2757,6 @@ sr_hotspare_rebuild(struct sr_discipline *sd)
busy = 0;
s = splbio();
- if (wu->swu_cb_active == 1)
- panic("%s: sr_hotspare_rebuild",
- DEVNAME(sd->sd_sc));
TAILQ_FOREACH(wu, &sd->sd_wu_pendq, swu_link) {
TAILQ_FOREACH(ccb, &wu->swu_ccb, ccb_link) {
if (ccb->ccb_target == chunk_no)