Properly check if mdraid array is active.

Authored by mpyne on Jul 11 2017, 3:02 PM.

Description

Properly check if mdraid array is active.

Don't compare a bool with an int. This causes this part of the
comparison to always evaluate to 'true'.

In this case the corrected check actually appears to be necessary
(inactive raid arrays won't show the "raid%d" type of output that is
meant to be copied into ->Level). Also noted by Coverity, CID 256387.

Details

Committed
mpyneJul 22 2017, 6:35 PM
Parents
R106:7c551f82de4b: FreeBSD build fix, v4.
Branches
Unknown
Tags
Unknown