[PATCH 1/1] dm: core: remove redundant if statement

sjg at google.com sjg at google.com
Tue Mar 3 03:46:10 CET 2020


On Sat, 15 Feb 2020 at 13:38, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> The value of parent is not changed in the first if statement. So we can
> merge the two if statements depending on parent.
>
> Indicated by cppcheck.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  drivers/core/device.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list