From b7a71b51ee37d919e4098cd961d59a883fd272d8 Mon Sep 17 00:00:00 2001
From: Niv Yehezkel <executerx@gmail.com>
Date: Fri, 8 Aug 2014 04:27:37 -0400
Subject: [PATCH] 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>
---
 net/ipv4/route.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 190199851c9ab..eaa4b000c7b44 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -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;
 
 	/*
-- 
GitLab