summaryrefslogtreecommitdiffstats
path: root/include/net/ip_fib.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2012-06-28 18:54:02 -0700
committerDavid S. Miller <davem@davemloft.net>2012-06-28 18:54:02 -0700
commit9e56e3800ea42e78b7c816bdd2d87d047be80541 (patch)
tree0bc002700fc4069667ca0ef9251dd496718ad813 /include/net/ip_fib.h
parenta207a4b2e8067cbc7f33924e7f2c0fa4ef43b459 (diff)
downloadop-kernel-dev-9e56e3800ea42e78b7c816bdd2d87d047be80541.zip
op-kernel-dev-9e56e3800ea42e78b7c816bdd2d87d047be80541.tar.gz
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>
Diffstat (limited to 'include/net/ip_fib.h')
-rw-r--r--include/net/ip_fib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h
index 9e6c26d..619f68a 100644
--- a/include/net/ip_fib.h
+++ b/include/net/ip_fib.h
@@ -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 */
OpenPOWER on IntegriCloud