summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2019-04-07 18:09:37 +0200
committerBernhard Reutner-Fischer2019-04-07 18:09:37 +0200
commitc6c19c31c127d7d45d5e3f664eb85e7f621eb817 (patch)
treea0d3e7ac2c064bf29399cf585a4b0477b3dff2e1
parent1e474d3d933bfe56a7f4eab17cf58cc6dd6a881d (diff)
downloadbusybox-c6c19c31c127d7d45d5e3f664eb85e7f621eb817.zip
busybox-c6c19c31c127d7d45d5e3f664eb85e7f621eb817.tar.gz
ipaddress: remove unused variable no_link
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>
-rw-r--r--networking/libiproute/ipaddress.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index 0a1b5d7..8364f6a 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -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);