diff mbox series

sandbox: net: lwip: use EOPNOTSUPP not ENOTSUPP

Message ID 20241105102455.10141-1-jerome.forissier@linaro.org
State New
Headers show
Series sandbox: net: lwip: use EOPNOTSUPP not ENOTSUPP | expand

Commit Message

Jerome Forissier Nov. 5, 2024, 10:24 a.m. UTC
EOPNOTSUPP is the recommended SUSV4 error code that should be used
instead of ENOTSUPP.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
---
 drivers/net/sandbox-lwip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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)