net: ipv4: remove unnecessary check on orig_oif
Subsystems (3)
PATCH 1/1 net: ipv4: remove unnecessary check on orig_oif
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 <[email protected]>
--- net/ipv4/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/route.c +1 -1
@@ -2237,7 +2237,7 @@ static struct rtable *__mkroute_output(const struct fib_result *res,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;
Signature · 1 line
2.1.4
From: David Ahern <[email protected]>
Date: Fri, 11 Aug 2017 17:02:02 -0700
Quoted 4 lines
rt_iifis going to be set to either 0 ororig_oif. Iforig_oifis 0 it amounts to the same end result so remove the check.Signed-off-by David Ahern <[email protected]>
Applied, thanks David.