Explorar o código

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 <executerx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Niv Yehezkel %!s(int64=11) %!d(string=hai) anos
pai
achega
b7a71b51ee
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      net/ipv4/route.c

+ 0 - 2
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;
 
 	/*