Commit 9d320e1e authored by Phil Sutter's avatar Phil Sutter Committed by Stephen Hemminger

ss: Drop silly assignment

An expression of the form '(a | b) & b' will evaluate to the value of b
for any value of a or b.
Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
parent 1c346dcc
...@@ -267,7 +267,7 @@ static void filter_default_dbs(struct filter *f) ...@@ -267,7 +267,7 @@ static void filter_default_dbs(struct filter *f)
static void filter_states_set(struct filter *f, int states) static void filter_states_set(struct filter *f, int states)
{ {
if (states) if (states)
f->states = (f->states | states) & states; f->states = states;
} }
static void filter_merge_defaults(struct filter *f) static void filter_merge_defaults(struct filter *f)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment