mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] Removed Unreachable code: net/net.c: net_handle_arp()
@ 2021-05-08 19:36 Neeraj Pal
  2021-05-10  7:21 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Neeraj Pal @ 2021-05-08 19:36 UTC (permalink / raw)
  To: barebox; +Cc: Neeraj Pal

Signed-off-by: Neeraj Pal <neerajpal09@gmail.com>
---
 net/net.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/net/net.c b/net/net.c
index 4dffc1bd5..fdb9ab826 100644
--- a/net/net.c
+++ b/net/net.c
@@ -577,8 +577,6 @@ static int net_handle_arp(struct eth_device *edev, unsigned char *pkt, int len)
 		return -EINVAL;
 	}
 
-	return 0;
-
 bad:
 	net_bad_packet(pkt, len);
 	return -EINVAL;
-- 
2.25.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Removed Unreachable code: net/net.c: net_handle_arp()
  2021-05-08 19:36 [PATCH] Removed Unreachable code: net/net.c: net_handle_arp() Neeraj Pal
@ 2021-05-10  7:21 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2021-05-10  7:21 UTC (permalink / raw)
  To: Neeraj Pal; +Cc: barebox

On Sun, May 09, 2021 at 01:06:56AM +0530, Neeraj Pal wrote:
> Signed-off-by: Neeraj Pal <neerajpal09@gmail.com>
> ---
>  net/net.c | 2 --
>  1 file changed, 2 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/net/net.c b/net/net.c
> index 4dffc1bd5..fdb9ab826 100644
> --- a/net/net.c
> +++ b/net/net.c
> @@ -577,8 +577,6 @@ static int net_handle_arp(struct eth_device *edev, unsigned char *pkt, int len)
>  		return -EINVAL;
>  	}
>  
> -	return 0;
> -
>  bad:
>  	net_bad_packet(pkt, len);
>  	return -EINVAL;
> -- 
> 2.25.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-10  7:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-08 19:36 [PATCH] Removed Unreachable code: net/net.c: net_handle_arp() Neeraj Pal
2021-05-10  7:21 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox