summaryrefslogtreecommitdiff
path: root/doc/develop/driver-model/pmic-framework.rst
diff options
context:
space:
mode:
authorDavid Lechner <[email protected]>2026-06-11 18:36:09 -0500
committerJerome Forissier <[email protected]>2026-06-23 13:13:16 +0200
commit91911aa0c76e641e673999111fc0aec1fe75b6d2 (patch)
tree8dfb7e97678c6c8c788cfd303ff9a33643ca1f1e /doc/develop/driver-model/pmic-framework.rst
parent747720eb73642fcab9693833f8943f3f37bdb881 (diff)
net: lwip: wget: return errno codes from wget_do_request()
Change the return values of the lwip implementation of wget_do_request() to be errno codes instead of command return codes. wget_do_request() is not a command, so it does not make sense to return command return codes from it. Also, the legacy network implementation of wget_do_request() already returns errno codes so it is logical for the lwip implementation to do the same. This fixes a bug in try_load_from_uri_path() in efi_manager.c where it checks that the return value of wget_do_request() is < 0. Before this change, CMD_RET_FAILURE would not be considered an error since it has a value of 1. The value of ENODEV is used in places where there could actually be a number of different causes of failure and it isn't possible to discriminate (i.e. failing function returns NULL for all errors). Since all callers of wget_do_request() don't propagate the error code, it doesn't matter so much that this is not ideal, at least at this point in time. Fixes: 3c656c928bd7 ("net: lwip: add wget command") Reviewed-by: Jerome Forissier <[email protected]> Signed-off-by: David Lechner <[email protected]>
Diffstat (limited to 'doc/develop/driver-model/pmic-framework.rst')
0 files changed, 0 insertions, 0 deletions