[PATCH] common: update: Fix TFTP return value handling

Tom Rini trini at konsulko.com
Fri Apr 24 20:50:52 CEST 2026


On Mon, 20 Apr 2026 03:23:07 +0200, Marek Vasut wrote:

> The net_loop() returns 1 on success, but update_load() returns 0 on
> success. Do not assign rv which is the return value of update_load()
> to net_loop(), instead assign net_loop() return value to a temporary
> variable and then update rv only if the temporary variable is negative.
> This way the update_load() now correctly returns 0 on tftp success and
> 1 only on failure.
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] common: update: Fix TFTP return value handling
      commit: d64c4a69585aa096c693c0b7ec4e6e04333fc45f
-- 
Tom




More information about the U-Boot mailing list