]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Remove redundant dst NULL check in ip6_dst_check
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Mar 2010 23:00:22 +0000 (23:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Mar 2010 04:00:42 +0000 (21:00 -0700)
commited2799fae21e177a7afde6d635ccbc79c5c47aa6
tree90b956fb7070f022f6619acdcc53f684e3372658
parentd8fe8a0fe1b4b3bdd749e2e3155183ede7cdbc83
ipv6: Remove redundant dst NULL check in ip6_dst_check

As the only path leading to ip6_dst_check makes an indirect call
through dst->ops, dst cannot be NULL in ip6_dst_check.

This patch removes this check in case it misleads people who
come across this code.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c