Skip to content

Commit

Permalink
ipv6: ndisc: remove redundant check for !dev->addr_len
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Graf authored and David S. Miller committed Mar 8, 2013
1 parent 0bcf6aa commit 80580d4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/ipv6/ndisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 80580d4

Please sign in to comment.