[PATCH 1/1] boot: simplify bootmeth_vbe_simple_ft_fixup()

Simon Glass sjg at chromium.org
Tue Aug 23 15:38:21 CEST 2022


On Tue, 23 Aug 2022 at 02:32, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> Don't assign a value to a variable if it is not used afterwards.
> Move variables to the code fragment where they are used.
>
> Addresses-Coverity: CID 356243 ("Code maintainability issues (UNUSED_VALUE)")
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
>  boot/vbe_simple.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list