]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
boot: superfluous assignment in bootflow_menu_new()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 7 Jan 2024 09:01:07 +0000 (10:01 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 18 Jan 2024 22:50:27 +0000 (17:50 -0500)
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

index 7c1abe5772cd45de6522ed78be9ad61f046e570c..16f9cd8f8ca572c590e555ce7abb657af6530831 100644 (file)
@@ -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++;
        }