From: Michal Simek Date: Wed, 26 Aug 2020 13:13:14 +0000 (+0200) Subject: binman: Call helper function binman_set_rom_offset() to fill offset X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=6723b4c6ca7b6ef1435ee5529a53e14df3e1b099;p=u-boot.git 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 --- 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; }