commit | 8ee830d8983763575aad62c37394ec954a76abc4 | [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 | b99c6357877da2829dc7fd73a50048e83abc53e2 [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>