]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ss: Drop useless assignment
authorPhil Sutter <phil@nwl.cc>
Thu, 17 Aug 2017 17:09:30 +0000 (19:09 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 22 Aug 2017 00:12:21 +0000 (17:12 -0700)
After '*b = *a', 'b->next' already has the same value as 'a->next'.

Signed-off-by: Phil Sutter <phil@nwl.cc>
misc/ss.c

index 419076b2d52f892391d2f193dab5139fc6961e3a..bd68ecdcad7ecc97453a709ab3e45599fac27e8f 100644 (file)
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -1440,7 +1440,6 @@ static int remember_he(struct aafilter *a, struct hostent *he)
                        if ((b = malloc(sizeof(*b))) == NULL)
                                return cnt;
                        *b = *a;
-                       b->next = a->next;
                        a->next = b;
                }
                memcpy(b->addr.data, *ptr, len);