mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
- 'ndisks' variable is not boolean, so compare it with a value.
- Keep conditions order consistent with the comment above. MFC after: 3 days
This commit is contained in:
parent
639dab2286
commit
2e128ca835
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157290
@ -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) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user