Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9438c871 authored by David Ahern's avatar David Ahern Committed by David S. Miller
Browse files

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: default avatarDavid Ahern <dsahern@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 653ef6a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;