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:
653ef6a
)
net: ipv4: remove unnecessary check on orig_oif
author
David Ahern
<dsahern@gmail.com>
Sat, 12 Aug 2017 00:02:02 +0000
(17:02 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 14 Aug 2017 03:03:03 +0000
(20:03 -0700)
rt_iif is going to be set to either 0 or orig_oif. If orig_oif
is 0 it amounts to the same end result so remove the check.
Signed-off-by: David Ahern <dsahern@gmail.com>
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 b88836e6b4a1e26e5c00b4d2650f7a7e9814a1fc..6810d2076b1baed40a466518347bf559f720a0fc 100644
(file)
--- a/
net/ipv4/route.c
+++ b/
net/ipv4/route.c
@@
-2236,7
+2236,7
@@
add:
if (!rth)
return ERR_PTR(-ENOBUFS);
- rth->rt_iif
= orig_oif ? : 0
;
+ rth->rt_iif
= orig_oif
;
if (res->table)
rth->rt_table_id = res->table->tb_id;