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)
commit9e56e3800ea42e78b7c816bdd2d87d047be80541
tree0bc002700fc4069667ca0ef9251dd496718ad813
parenta207a4b2e8067cbc7f33924e7f2c0fa4ef43b459
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