[PATCH -next 2/3] ARM: 6953/1: DT: remove dt_virt parameter double check

From: Xu Qiang
Date: Tue Jul 26 2022 - 23:13:16 EST


early_init_dt_verify() can handle NULL dt_virt as its argument,
and return NULL when dt_virt is NULL. So remove NULL
check before early_init_dt_verify operation.

Signed-off-by: Xu Qiang <xuqiang36@xxxxxxxxxx>
---
arch/arm/kernel/devtree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/kernel/devtree.c b/arch/arm/kernel/devtree.c
index 02839d8b6202..182a59b23b09 100644
--- a/arch/arm/kernel/devtree.c
+++ b/arch/arm/kernel/devtree.c
@@ -203,7 +203,7 @@ const struct machine_desc * __init setup_machine_fdt(void *dt_virt)
mdesc_best = &__mach_desc_GENERIC_DT;
#endif

- if (!dt_virt || !early_init_dt_verify(dt_virt))
+ if (!early_init_dt_verify(dt_virt))
return NULL;

mdesc = of_flat_dt_match_machine(mdesc_best, arch_get_next_mach);
--
2.17.1