summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r--sys/dev/softraid.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index ff335328265..87a459942e7 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.370 2016/04/19 21:40:48 krw Exp $ */
+/* $OpenBSD: softraid.c,v 1.371 2016/04/19 21:47:56 krw Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
* Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -3010,10 +3010,7 @@ sr_hotspare_rebuild(struct sr_discipline *sd)
struct sr_ccb *ccb;
int i, s, cid, busy;
- /*
- * Attempt to locate a hotspare and initiate rebuild.
- */
-
+ /* Find first offline chunk. */
for (cid = 0; cid < sd->sd_meta->ssdi.ssd_chunk_no; cid++) {
if (sd->sd_vol.sv_chunks[cid]->src_meta.scm_status ==
BIOC_SDOFFLINE) {