Skip to content
Commit 8ee830d8 authored by Marek Vasut's avatar Marek Vasut Committed by Tom Rini
Browse files

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: default avatarJonas Karlman <jonas@kwiboo.se>
Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent b99c6357
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment