Skip to content

Commit 9438c87

Browse files
dsaherndavem330
authored andcommitted
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 <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 653ef6a commit 9438c87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/route.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,7 @@ static struct rtable *__mkroute_output(const struct fib_result *res,
22362236
if (!rth)
22372237
return ERR_PTR(-ENOBUFS);
22382238

2239-
rth->rt_iif = orig_oif ? : 0;
2239+
rth->rt_iif = orig_oif;
22402240
if (res->table)
22412241
rth->rt_table_id = res->table->tb_id;
22422242

0 commit comments

Comments
 (0)