diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-09-05 11:55:56 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-09-12 12:05:02 +0200 |
commit | 3ec7206cb496a0b992f18acf30bd88e8af5e9ac9 (patch) | |
tree | 9231a59c3cfe715dea5f543db590e8054b1df6de /net | |
parent | 2f912c05dbebabb0446cf54e605d5d0f1bdc512c (diff) | |
download | barebox-3ec7206cb496a0b992f18acf30bd88e8af5e9ac9.tar.gz barebox-3ec7206cb496a0b992f18acf30bd88e8af5e9ac9.tar.xz |
net: ping: propagate failure
We populate ret, but don't do anything with it. Pass it along instead.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220905095557.596891-32-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -634,7 +634,7 @@ static int ping_reply(struct eth_device *edev, unsigned char *pkt, int len) free(packet); - return 0; + return ret; } static int net_handle_icmp(struct eth_device *edev, unsigned char *pkt, int len) |