From: Niv Yehezkel Date: Fri, 8 Aug 2014 08:27:37 +0000 (-0400) Subject: ipv4: removed redundant conditional X-Git-Tag: v4.9.8~5886^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7a71b51ee37d919e4098cd961d59a883fd272d8;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 1901998..eaa4b00 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -1798,8 +1798,6 @@ local_input: no_route: RT_CACHE_STAT_INC(in_no_route); res.type = RTN_UNREACHABLE; - if (err == -ESRCH) - err = -ENETUNREACH; goto local_input; /*