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

Simon Glass sjg at chromium.org
Sun Feb 16 20:03:57 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>


More information about the U-Boot mailing list