ipaddress: remove unused variable no_link
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 7 Apr 2019 16:09:37 +0000 (18:09 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 7 Apr 2019 16:09:37 +0000 (18:09 +0200)
ipaddress.c: In function ‘ipaddr_list_or_flush’:
ipaddress.c:427:6: warning: variable ‘no_link’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
networking/libiproute/ipaddress.c

index 0a1b5d79845b354bd6d153658e73b11170ad287f..8364f6a3e6c7e82e6bef3bd0d0a9a993645ee38d 100644 (file)
@@ -424,7 +424,6 @@ int FAST_FUNC ipaddr_list_or_flush(char **argv, int flush)
        struct nlmsg_list *l;
        struct rtnl_handle rth;
        char *filter_dev = NULL;
-       int no_link = 0;
 
        ipaddr_reset_filter(oneline);
        G_filter.showqueue = 1;
@@ -516,9 +515,6 @@ int FAST_FUNC ipaddr_list_or_flush(char **argv, int flush)
                struct nlmsg_list **lp;
                lp = &linfo;
 
-               if (G_filter.oneline)
-                       no_link = 1;
-
                while ((l = *lp) != NULL) {
                        int ok = 0;
                        struct ifinfomsg *ifi = NLMSG_DATA(&l->h);