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>
This commit is contained in:
David S. Miller 2012-06-28 18:54:02 -07:00
parent a207a4b2e8
commit 9e56e3800e
3 changed files with 17 additions and 22 deletions

View file

@ -233,7 +233,7 @@ extern void ip_fib_init(void);
extern __be32 fib_compute_spec_dst(struct sk_buff *skb);
extern int fib_validate_source(struct sk_buff *skb, __be32 src, __be32 dst,
u8 tos, int oif, struct net_device *dev,
u32 *itag);
struct in_device *idev, u32 *itag);
extern void fib_select_default(struct fib_result *res);
/* Exported by fib_semantics.c */