aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-12-05 20:32:53 +0100
committerTom Rini <trini@konsulko.com>2024-12-19 12:17:32 -0600
commitb6691d0add999459393a19f0f02b66243ee2a4ae (patch)
treea58a015777411ba26b06c4fa08e0ea267245787f
parent937830713657640ee610234dabb6c5c648245dd8 (diff)
downloadu-boot-b6691d0add999459393a19f0f02b66243ee2a4ae.zip
u-boot-b6691d0add999459393a19f0f02b66243ee2a4ae.tar.gz
u-boot-b6691d0add999459393a19f0f02b66243ee2a4ae.tar.bz2
net: lwip: do not return CMD_RET_USAGE if no interface
If the dns command cannot find a network interface, we should return CMD_RETFAIURE and not -1 (CMD_RET_USAGE). Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
-rw-r--r--net/lwip/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/lwip/dns.c b/net/lwip/dns.c
index 4b937fe..1de63c9 100644
--- a/net/lwip/dns.c
+++ b/net/lwip/dns.c
@@ -56,7 +56,7 @@ static int dns_loop(struct udevice *udev, const char *name, const char *var)
netif = net_lwip_new_netif(udev);
if (!netif)
- return -1;
+ return CMD_RET_FAILURE;
dns_init();