fdt: Drop OF_CONTROL check in fdtdec_setup()
authorSimon Glass <sjg@chromium.org>
Fri, 17 Dec 2021 03:59:29 +0000 (20:59 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 23 Dec 2021 15:24:39 +0000 (10:24 -0500)
commitb5199380fc993174a795994f00ef3d67e60142c1
tree8e2acd7c6156dc3f47493bb5a95e571b9367112e
parent931511d0897ea1f63102b134733e3a71d3545f64
fdt: Drop OF_CONTROL check in fdtdec_setup()

This function should only be called when OF_CONTROL is enabled. It
fails in fdtdec_prepare_fdt() anyway, since gd->fdt_blob stays as NULL
if OF_CONTROL is not enabled.

Drop this useless check.

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/fdtdec.c