summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2016-04-19 21:47:56 +0000
committerkrw <krw@openbsd.org>2016-04-19 21:47:56 +0000
commitab3b0eafbc63a13acfb152401a71ec3fb17138c3 (patch)
treea74799ba7747d35dae20b531b25bf09d43c2bce8 /sys/dev/softraid.c
parentUse variable 'cid' in for(;;) rather than 'i' with an assignment (diff)
downloadwireguard-openbsd-ab3b0eafbc63a13acfb152401a71ec3fb17138c3.tar.xz
wireguard-openbsd-ab3b0eafbc63a13acfb152401a71ec3fb17138c3.zip
Use consistent intro comment when searching for the first offline
chunk and perhaps save the next person reading the code some confusion.
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) {