]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: remove redundant if statement
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 15 Feb 2020 20:38:48 +0000 (21:38 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 16 Apr 2020 14:07:57 +0000 (08:07 -0600)
commit957d1e47991afc1b52336dd3b06f6b7f9b5104a2
treef9b8327fd9425dab868c7023e4d47c2667c7dc87
parentbe77cd55834075ba569f69a931092be05f830024
dm: core: remove redundant if statement

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@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c