[PATCH 1/1] boot: superfluous assignment in bootflow_menu_new()

ret is assigned a value 0 which is never used but is immediately overwritten in the next statement.
Addresses-Coverity-ID: 453304 ("Unused value") Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com --- boot/bootflow_menu.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/boot/bootflow_menu.c b/boot/bootflow_menu.c index 7c1abe5772..16f9cd8f8c 100644 --- a/boot/bootflow_menu.c +++ b/boot/bootflow_menu.c @@ -120,7 +120,6 @@ int bootflow_menu_new(struct expo **expp)
if (ret < 0) return log_msg_ret("itm", -EINVAL); - ret = 0; priv->num_bootflows++; }

On Sun, Jan 07, 2024 at 10:01:07AM +0100, Heinrich Schuchardt wrote:
ret is assigned a value 0 which is never used but is immediately overwritten in the next statement.
Addresses-Coverity-ID: 453304 ("Unused value") Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com
Applied to u-boot/master, thanks!
participants (2)
-
Heinrich Schuchardt
-
Tom Rini