net/ipv6: compute anycast address hash only if dev is null
authorLi RongQing <lirongqing@baidu.com>
Thu, 8 Nov 2018 06:58:07 +0000 (14:58 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Nov 2018 01:04:43 +0000 (17:04 -0800)
commit1c51dc9ad68acf4d2cb89ba847fb48fd6e2de723
tree27a8408a497b734addd97562eee2501e452c9bf0
parent0db55093b56618088b9a1d445eb6e43b311bea33
net/ipv6: compute anycast address hash only if dev is null

avoid to compute the hash value if dev is not null, since
hash value is not used

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/anycast.c