commit | 8d3339aa994d832a880ab346d79a6ca107758f71 | [log] [tgz] |
---|---|---|
author | Marek Vasut <marex@denx.de> | Sun Jul 16 17:53:24 2023 +0200 |
committer | Tom Rini <trini@konsulko.com> | Mon Aug 14 17:55:52 2023 -0400 |
tree | 860aea4c54fbfa4359dfa6f13c437ad513377c80 | |
parent | 23d98987c21c8b0dde04e640751a2f422455074f [diff] |
pci: Fix device_find_first_child() return value handling This function only ever returns 0, but may not assign the second parameter. Same thing for device_find_next_child(). Do not assign ret to stop proliferation of this misuse. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org>