[PATCH] sandbox: net: lwip: use EOPNOTSUPP not ENOTSUPP
Jerome Forissier
jerome.forissier at linaro.org
Tue Nov 5 11:24:53 CET 2024
EOPNOTSUPP is the recommended SUSV4 error code that should be used
instead of ENOTSUPP.
Signed-off-by: Jerome Forissier <jerome.forissier at linaro.org>
---
drivers/net/sandbox-lwip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/sandbox-lwip.c b/drivers/net/sandbox-lwip.c
index 3721033c310..5c9a0cb1b9f 100644
--- a/drivers/net/sandbox-lwip.c
+++ b/drivers/net/sandbox-lwip.c
@@ -27,7 +27,7 @@ static int sb_lwip_eth_send(struct udevice *dev, void *packet, int length)
{
debug("eth_sandbox_lwip: Send packet %d\n", length);
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
}
static int sb_lwip_eth_recv(struct udevice *dev, int flags, uchar **packetp)
--
2.40.1
More information about the U-Boot
mailing list