]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Adjust in_dev handling in fib_validate_source()
authorDavid S. Miller <davem@davemloft.net>
Fri, 29 Jun 2012 01:54:02 +0000 (18:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jun 2012 01:54:02 +0000 (18:54 -0700)
commitc6fe4a468fbd7cc551d7d1f0972d060621a2e13e
tree0bc002700fc4069667ca0ef9251dd496718ad813
parent1a917fa926d4f138f522e3b494c42931d7cc3005
ipv4: Adjust in_dev handling in fib_validate_source()

Checking for in_dev being NULL is pointless.

In fact, all of our callers have in_dev precomputed already,
so just pass it in and remove the NULL checking.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_frontend.c
net/ipv4/route.c