]> 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)
commita244a6ba8a9af0a3605dc060f3759be1ca0920a9
tree0bc002700fc4069667ca0ef9251dd496718ad813
parent98f3aec7494ea633161df9d453d35da90af5af02
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