summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2007-03-31 12:07:50 +0000
committermarco <marco@openbsd.org>2007-03-31 12:07:50 +0000
commit55815916ad68ac6618463047150e7bd6935019f6 (patch)
tree53f7d759e4d5cbaacf9fd890f9bb7fde9a20a421 /sys/dev/softraid.c
parentsync (diff)
downloadwireguard-openbsd-55815916ad68ac6618463047150e7bd6935019f6.tar.xz
wireguard-openbsd-55815916ad68ac6618463047150e7bd6935019f6.zip
Spacing and a stale comment.
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r--sys/dev/softraid.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c
index fbd6fc91ce7..0a5a7806ca9 100644
--- a/sys/dev/softraid.c
+++ b/sys/dev/softraid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.11 2007/03/30 23:15:30 marco Exp $ */
+/* $OpenBSD: softraid.c,v 1.12 2007/03/31 12:07:50 marco Exp $ */
/*
* Copyright (c) 2007 Marco Peereboom <marco@peereboom.us>
*
@@ -1383,7 +1383,6 @@ sr_raid1_set_chunk_state(struct sr_discipline *sd, int c, int new_state)
s = splbio();
old_state = sd->sd_vol.sv_chunks[c]->src_meta.scm_status;
- /* there is a race on status here but we don't care for now */
switch (old_state) {
case BIOC_SDONLINE:
switch (new_state) {
@@ -1467,7 +1466,6 @@ sr_raid1_set_vol_state(struct sr_discipline *sd)
nd = sd->sd_vol.sv_meta.svm_no_chunk;
-
for (i = 0; i < SR_MAX_STATES; i++)
states[i] = 0;