From: Phil Sutter Date: Wed, 13 Apr 2016 20:07:04 +0000 (+0200) Subject: ss: Drop silly assignment X-Git-Tag: v4.6.0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d320e1e928630d8b2b83d5e4ef4e10a117352bc;p=thirdparty%2Fiproute2.git 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: Phil Sutter --- diff --git a/misc/ss.c b/misc/ss.c index 38cf3312a..d6090018c 100644 --- a/misc/ss.c +++ b/misc/ss.c @@ -267,7 +267,7 @@ static void filter_default_dbs(struct filter *f) static void filter_states_set(struct filter *f, int states) { if (states) - f->states = (f->states | states) & states; + f->states = states; } static void filter_merge_defaults(struct filter *f)