The value of boot_params is device specific and non-zero on many boards.

Signed-off-by: Heinrich Schuchardt <[email protected]>
---
 test/cmd/bdinfo.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/cmd/bdinfo.c b/test/cmd/bdinfo.c
index 2f3a65996e7..ba8a3392237 100644
--- a/test/cmd/bdinfo.c
+++ b/test/cmd/bdinfo.c
@@ -156,7 +156,9 @@ static int bdinfo_check_mem(struct unit_test_state *uts)
 
 static int bdinfo_test_all(struct unit_test_state *uts)
 {
-       ut_assertok(test_num_l(uts, "boot_params", 0));
+       struct bd_info *bd = gd->bd;
+
+       ut_assertok(test_num_l(uts, "boot_params", bd->bi_boot_params));
 
        ut_assertok(bdinfo_check_mem(uts));
 
-- 
2.51.0

Reply via email to