projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbdd9a5
)
ipv4: Remove unnecessary test from ip_mkroute_input()
author
David S. Miller
<davem@davemloft.net>
Fri, 11 Mar 2011 00:23:24 +0000
(16:23 -0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 11 Mar 2011 01:01:01 +0000
(17:01 -0800)
fl->oif will always be zero on the input path, so there is no reason
to test for that.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/route.c
b/net/ipv4/route.c
index f6730d94e307758499f37888144d88873dc23527..a7ac90cb151dbbeff5ad7159cf0548517f6cc0b1 100644
(file)
--- a/
net/ipv4/route.c
+++ b/
net/ipv4/route.c
@@
-2047,7
+2047,7
@@
static int ip_mkroute_input(struct sk_buff *skb,
unsigned hash;
#ifdef CONFIG_IP_ROUTE_MULTIPATH
- if (res->fi && res->fi->fib_nhs > 1
&& fl->oif == 0
)
+ if (res->fi && res->fi->fib_nhs > 1)
fib_select_multipath(fl, res);
#endif