Commit b7a71b51 authored by Niv Yehezkel's avatar Niv Yehezkel Committed by David S. Miller

ipv4: removed redundant conditional

Since fib_lookup cannot return ESRCH no longer,
checking for this error code is no longer neccesary.
Signed-off-by: default avatarNiv Yehezkel <executerx@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 10b00466
......@@ -1798,8 +1798,6 @@ out: return err;
no_route:
RT_CACHE_STAT_INC(in_no_route);
res.type = RTN_UNREACHABLE;
if (err == -ESRCH)
err = -ENETUNREACH;
goto local_input;
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment