Skip to content

Commit

Permalink
net: ipv4: remove unnecessary check on orig_oif
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Ahern authored and David S. Miller committed Aug 14, 2017
1 parent 653ef6a commit 9438c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -2236,7 +2236,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;

Expand Down

0 comments on commit 9438c87

Please sign in to comment.