naccyde / rpms / iproute

Forked from rpms/iproute 10 months ago
Clone

Blame SOURCES/0089-ss-Drop-useless-assignment.patch

36cfb7
From 23e13f60728a68b2c4a5b3656a1ce79affaafc6d Mon Sep 17 00:00:00 2001
36cfb7
From: Andrea Claudi <aclaudi@redhat.com>
36cfb7
Date: Mon, 29 Apr 2019 20:07:22 +0200
36cfb7
Subject: [PATCH] ss: Drop useless assignment
36cfb7
36cfb7
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1465646
36cfb7
Upstream Status: iproute2.git commit e469523e8e8d1
36cfb7
36cfb7
commit e469523e8e8d1d31c3b35251105e2a843216d687
36cfb7
Author: Phil Sutter <phil@nwl.cc>
36cfb7
Date:   Thu Aug 17 19:09:30 2017 +0200
36cfb7
36cfb7
    ss: Drop useless assignment
36cfb7
36cfb7
    After '*b = *a', 'b->next' already has the same value as 'a->next'.
36cfb7
36cfb7
    Signed-off-by: Phil Sutter <phil@nwl.cc>
36cfb7
---
36cfb7
 misc/ss.c | 1 -
36cfb7
 1 file changed, 1 deletion(-)
36cfb7
36cfb7
diff --git a/misc/ss.c b/misc/ss.c
36cfb7
index 38f4017e4a8c8..cc38fc499c210 100644
36cfb7
--- a/misc/ss.c
36cfb7
+++ b/misc/ss.c
36cfb7
@@ -1476,7 +1476,6 @@ static int remember_he(struct aafilter *a, struct hostent *he)
36cfb7
 			if ((b = malloc(sizeof(*b))) == NULL)
36cfb7
 				return cnt;
36cfb7
 			*b = *a;
36cfb7
-			b->next = a->next;
36cfb7
 			a->next = b;
36cfb7
 		}
36cfb7
 		memcpy(b->addr.data, *ptr, len);
36cfb7
-- 
36cfb7
2.20.1
36cfb7