Blame SOURCES/0148-ss-Drop-silly-assignment.patch

049c96
From 26763f0545c14630b1af31fbd9550a38356dad31 Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Mon, 30 May 2016 16:46:58 +0200
049c96
Subject: [PATCH] ss: Drop silly assignment
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1318005
049c96
Upstream Status: iproute2.git commit 9d320e1e92863
049c96
049c96
commit 9d320e1e928630d8b2b83d5e4ef4e10a117352bc
049c96
Author: Phil Sutter <phil@nwl.cc>
049c96
Date:   Wed Apr 13 22:07:04 2016 +0200
049c96
049c96
    ss: Drop silly assignment
049c96
049c96
    An expression of the form '(a | b) & b' will evaluate to the value of b
049c96
    for any value of a or b.
049c96
049c96
    Signed-off-by: Phil Sutter <phil@nwl.cc>
049c96
---
049c96
 misc/ss.c | 2 +-
049c96
 1 file changed, 1 insertion(+), 1 deletion(-)
049c96
049c96
diff --git a/misc/ss.c b/misc/ss.c
049c96
index 95f3c31..ce7fa82 100644
049c96
--- a/misc/ss.c
049c96
+++ b/misc/ss.c
049c96
@@ -267,7 +267,7 @@ static void filter_default_dbs(struct filter *f)
049c96
 static void filter_states_set(struct filter *f, int states)
049c96
 {
049c96
 	if (states)
049c96
-		f->states = (f->states | states) & states;
049c96
+		f->states = states;
049c96
 }
049c96
 
049c96
 static void filter_merge_defaults(struct filter *f)
049c96
-- 
049c96
1.8.3.1
049c96