Skip to content

Commit b7a71b5

Browse files
executerxdavem330
authored andcommitted
ipv4: removed redundant conditional
Since fib_lookup cannot return ESRCH no longer, checking for this error code is no longer neccesary. Signed-off-by: Niv Yehezkel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 10b0046 commit b7a71b5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

net/ipv4/route.c

-2
Original file line numberDiff line numberDiff line change
@@ -1798,8 +1798,6 @@ out: return err;
17981798
no_route:
17991799
RT_CACHE_STAT_INC(in_no_route);
18001800
res.type = RTN_UNREACHABLE;
1801-
if (err == -ESRCH)
1802-
err = -ENETUNREACH;
18031801
goto local_input;
18041802

18051803
/*

0 commit comments

Comments
 (0)