[PATCH 1/1] boot: simplify bootmeth_vbe_simple_ft_fixup()
Simon Glass
sjg at chromium.org
Sat Aug 27 03:59: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>
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list