From 6723b4c6ca7b6ef1435ee5529a53e14df3e1b099 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Wed, 26 Aug 2020 15:13:14 +0200 Subject: [PATCH] binman: Call helper function binman_set_rom_offset() to fill offset There is prepared function for filing rom_offset. That's why use it instead of copying content of it. Signed-off-by: Michal Simek Reviewed-by: Simon Glass Reviewed-by: Simon Glass --- lib/binman.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/binman.c b/lib/binman.c index e71c1b9e99..d395b1cf70 100644 --- a/lib/binman.c +++ b/lib/binman.c @@ -103,7 +103,7 @@ int binman_init(void) return log_msg_ret("first image", -ENOENT); binman->image = node; } - binman->rom_offset = ROM_OFFSET_NONE; - + binman_set_rom_offset(ROM_OFFSET_NONE); +\ return 0; } -- 2.39.5