HomeFreeBSD

MFC r311688:

Description

MFC r311688:

Fix logic error in gvinum's gv_set_sd_state()

With clang 4.0.0, I'm getting the following warnings:

sys/geom/vinum/geom_vinum_state.c:186:7: error: logical not is only
applied to the left hand side of this bitwise operator
[-Werror,-Wlogical-not-parentheses]
                if (!flags & GV_SETSTATE_FORCE)
                    ^      ~

The logical not operator should obiously be called after masking.

Reviewed by: mav, pfg
Differential Revision: https://reviews.freebsd.org/D9093

Details

Provenance
dimAuthored on
Reviewer
mav
Differential Revision
D9093: Fix logic error in gvinum's gv_set_sd_state()
Parents
rS311938: MFC r311570:
Branches
Unknown
Tags
Unknown