ipq: fdt_fixup: Add condition for dload_dis check

This change adds an additional condition to check for empty string as
env variable

Change-Id: Ica847b7af6d28094df54677fa7423e606699f5fe
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
This commit is contained in:
Saahil Tomar 2023-01-23 15:55:21 +05:30 committed by Gerrit - the friendly Code Review server
parent aaa3325003
commit 98d032f124

View file

@ -1168,7 +1168,7 @@ int ft_board_setup(void *blob, bd_t *bd)
if (s)
fdt_fixup_set_dload_warm_reset(blob);
s = getenv("dload_dis");
if (s)
if ((s != NULL) && (s[0] != '\0'))
ipq_fdt_mem_rsvd_fixup(blob);
s = getenv("qce_fixed_key");
if (s)