* [PATCH] ipv4: removed redundant conditional
@ 2014-08-08 8:27 Niv Yehezkel
2014-08-08 17:22 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Niv Yehezkel @ 2014-08-08 8:27 UTC (permalink / raw)
To: David S. Miller, netdev
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>
---
net/ipv4/route.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 082239f..23175cb 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -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;
/*
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ipv4: removed redundant conditional
2014-08-08 8:27 [PATCH] ipv4: removed redundant conditional Niv Yehezkel
@ 2014-08-08 17:22 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-08-08 17:22 UTC (permalink / raw)
To: executerx; +Cc: netdev
From: Niv Yehezkel <executerx@gmail.com>
Date: Fri, 8 Aug 2014 04:27:37 -0400
> 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>
Applied, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-08 17:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-08 8:27 [PATCH] ipv4: removed redundant conditional Niv Yehezkel
2014-08-08 17:22 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).