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)
commitf93a07dd4f2e9096208a3230b0eca669d9760397
treef9b8327fd9425dab868c7023e4d47c2667c7dc87
parent2960107a22b32f6e17794f5e56db718ab82c896f
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