summaryrefslogtreecommitdiffstats
path: root/sys/geom/mirror
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-03-30 12:15:41 +0000
committerpjd <pjd@FreeBSD.org>2006-03-30 12:15:41 +0000
commit568ba3bc0f59722183745c27c3ee171b74abedd8 (patch)
tree5223d8e7228b4a4bcd488f45015e42e338440496 /sys/geom/mirror
parentdba9e095d481ec8f3fae72a3ca12ac6bc8e61664 (diff)
downloadFreeBSD-src-568ba3bc0f59722183745c27c3ee171b74abedd8.zip
FreeBSD-src-568ba3bc0f59722183745c27c3ee171b74abedd8.tar.gz
- 'ndisks' variable is not boolean, so compare it with a value.
- Keep conditions order consistent with the comment above. MFC after: 3 days
Diffstat (limited to 'sys/geom/mirror')
-rw-r--r--sys/geom/mirror/g_mirror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c
index 574fee1..e69af5a 100644
--- a/sys/geom/mirror/g_mirror.c
+++ b/sys/geom/mirror/g_mirror.c
@@ -2116,7 +2116,7 @@ g_mirror_update_device(struct g_mirror_softc *sc, boolean_t force)
* if we have any disks and 'force' is true.
*/
ndisks = g_mirror_ndisks(sc, -1);
- if ((force && ndisks) || sc->sc_ndisks == ndisks) {
+ if (sc->sc_ndisks == ndisks || (force && ndisks > 0)) {
;
} else if (ndisks == 0) {
/*
OpenPOWER on IntegriCloud