From 1824f2d91a3c716b648fe8353c44d6086d9d62a4 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Fri, 2 Oct 2015 16:45:21 +0200 Subject: [PATCH] shell: ifconfig: remove unused variable --- sys/shell/commands/sc_netif.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sys/shell/commands/sc_netif.c b/sys/shell/commands/sc_netif.c index ab6743b2d6..cc22f392da 100644 --- a/sys/shell/commands/sc_netif.c +++ b/sys/shell/commands/sc_netif.c @@ -649,7 +649,6 @@ static int _netif_add(char *cmd_name, kernel_pid_t dev, int argc, char **argv) } type = _UNICAST; char *addr_str = argv[0]; ipv6_addr_t addr; - ipv6_addr_t *assigned_address; uint8_t prefix_len; if (argc > 1) { @@ -683,11 +682,9 @@ static int _netif_add(char *cmd_name, kernel_pid_t dev, int argc, char **argv) return 1; } - if ((assigned_address = gnrc_ipv6_netif_add_addr(dev, &addr, prefix_len, - (type == _ANYCAST) ? - GNRC_IPV6_NETIF_ADDR_FLAGS_NON_UNICAST : - GNRC_IPV6_NETIF_ADDR_FLAGS_UNICAST)) - == NULL) { + if (gnrc_ipv6_netif_add_addr(dev, &addr, prefix_len, (type == _ANYCAST) ? + GNRC_IPV6_NETIF_ADDR_FLAGS_NON_UNICAST : + GNRC_IPV6_NETIF_ADDR_FLAGS_UNICAST) == NULL) { printf("error: unable to add IPv6 address\n"); return 1; }