From: Thomas Graf Date: Fri, 8 Mar 2013 01:03:46 +0000 (+0000) Subject: ipv6: ndisc: remove redundant check for !dev->addr_len X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=80580d4b20e13383009b4fb2043235a7d0a42589;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ipv6: ndisc: remove redundant check for !dev->addr_len send_sllao is already initialized with the value of dev->addr_len Cc: Hideaki YOSHIFUJI Signed-off-by: Thomas Graf Acked-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 76ef4353d518..2712ab22a174 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -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);