]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: lwip: do not return CMD_RET_USAGE if no interface
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 5 Dec 2024 19:32:53 +0000 (20:32 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 19 Dec 2024 18:17:32 +0000 (12:17 -0600)
commitb6691d0add999459393a19f0f02b66243ee2a4ae
treea58a015777411ba26b06c4fa08e0ea267245787f
parent937830713657640ee610234dabb6c5c648245dd8
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>
net/lwip/dns.c