ipv6: ndisc: remove redundant check for !dev->addr_len
authorThomas Graf <tgraf@suug.ch>
Fri, 8 Mar 2013 01:03:46 +0000 (01:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Mar 2013 17:29:22 +0000 (12:29 -0500)
send_sllao is already initialized with the value of dev->addr_len

Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ndisc.c

index 76ef435..2712ab2 100644 (file)
@@ -610,8 +610,6 @@ void ndisc_send_rs(struct net_device *dev, const struct in6_addr *saddr,
                }
        }
 #endif
-       if (!dev->addr_len)
-               send_sllao = 0;
        if (send_sllao)
                optlen += ndisc_opt_addr_space(dev);