diff options
author | Michal Suchanek <msuchanek@suse.de> | 2022-10-12 22:58:02 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-10-18 06:17:12 +0300 |
commit | 0736f7aa3b044bef9dc756902608133843696ed8 (patch) | |
tree | decfaa2e3b46282f620107579f7ab855de591d8e /configs | |
parent | 9b7474d83b45d2b738866e9a4a46fe2b498a65d1 (diff) | |
download | u-boot-0736f7aa3b044bef9dc756902608133843696ed8.tar.xz |
net: eth-uclass: Do not set device on error
eth_get_dev relies on the broken behavior that returns an error but not
the device on which the error happened which gives the caller no
reasonable way to report or handle the error.
In a later patch uclass_first_device_err will be changed to return the
device on error but eth_get_dev stores the returned device pointer
directly in a global state without checking the return value. Unset the
pointer again in the error case.
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'configs')
0 files changed, 0 insertions, 0 deletions