Skip to contentSkip to conversation

ipv4: removed redundant conditional

PATCH Applied Niv Yehezkel 2 participants 2 messages Aug 8, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipv4: removed redundant conditional

Since fib_lookup cannot return ESRCH no longer, checking for this error code is no longer neccesary.

---
 net/ipv4/route.c |    2 --
 1 file changed, 2 deletions(-)
net/ipv4/route.c +0 -2
index 082239f..23175cb 100644
@@ -1771,8 +1771,6 @@ local_input:
 no_route:
 	RT_CACHE_STAT_INC(in_no_route);
 	res.type = RTN_UNREACHABLE;
-	if (err == -ESRCH)
-		err = -ENETUNREACH;
 	goto local_input;
 
 	/*
Signature · 1 line
1.7.10.4