Skip to contentSkip to conversation

Removed Unreachable code: net/net.c: net_handle_arp()

PATCH Applied Neeraj Pal 2 participants 2 messages May 8, 2021 – May 10, 2021 Networking

lore
Share & tools
lore

Neeraj Pal

author
#0 lore raw

PATCH 1/1 Removed Unreachable code: net/net.c: net_handle_arp()

---
 net/net.c | 2 --
 1 file changed, 2 deletions(-)
net/net.c +0 -2
index 4dffc1bd5..fdb9ab826 100644
@@ -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;
Signature · 7 lines
2.25.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 4 lines · Neeraj Pal
---
 net/net.c | 2 --
 1 file changed, 2 deletions(-)

Applied, thanks

Sascha

Quoted 23 lines
net/net.c +0 -2
index 4dffc1bd5..fdb9ab826 100644
@@ -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;
Signature · 7 lines
2.25.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox