naccyde / rpms / iproute

Forked from rpms/iproute 9 months ago
Clone

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

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