]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwboot: Fix return type of kwboot_xm_makeblock() function
authorPali Rohár <pali@kernel.org>
Fri, 24 Sep 2021 21:06:44 +0000 (23:06 +0200)
committerStefan Roese <sr@denx.de>
Fri, 1 Oct 2021 09:07:13 +0000 (11:07 +0200)
commit8d46fd204152488689a0b5ba2febcb944b0d58eb
tree67b10993bf0772b01bfec2b4847a50453d070e45
parent93a45cb5b650530c392db557468e1eec47217311
tools: kwboot: Fix return type of kwboot_xm_makeblock() function

Function kwboot_xm_makeblock() always returns length of xmodem block. It
is always non-negative and calculated from variable with size_t type. Set
return type of this function to size_t and remove dead code which checks
for negative value.

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/kwboot.c