Skip to content

Commit

Permalink
ipv4: removed redundant conditional
Browse files Browse the repository at this point in the history
Since fib_lookup cannot return ESRCH no longer,
checking for this error code is no longer neccesary.

Signed-off-by: Niv Yehezkel <executerx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Niv Yehezkel authored and David S. Miller committed Aug 8, 2014
1 parent 10b0046 commit b7a71b5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit b7a71b5

Please sign in to comment.