tools: kwbimage: Deduplicate v1 regtype header finishing
authorPali Rohár <pali@kernel.org>
Wed, 12 Jan 2022 17:20:36 +0000 (18:20 +0100)
committerStefan Roese <sr@denx.de>
Fri, 14 Jan 2022 10:39:15 +0000 (11:39 +0100)
commit9ac1def0207c0b3e01eee203b138fba4ca299ef0
treed0dba4ce0a71b7a634ef2da736c022f6340a10e1
parent6eb20bbff38581c0bef00027937d510fe540c8c0
tools: kwbimage: Deduplicate v1 regtype header finishing

Deduplicate code that finishes OPT_HDR_V1_REGISTER_TYPE header by
extracing it into separate function.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwbimage.c