mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
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:
parent
a207a4b2e8
commit
9e56e3800e
3 changed files with 17 additions and 22 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue