]> git.baikalelectronics.ru Git - uboot.git/commit
boot: simplify bootmeth_vbe_simple_ft_fixup()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 23 Aug 2022 08:31:56 +0000 (10:31 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 26 Aug 2022 22:32:59 +0000 (16:32 -0600)
commit12e8b8cf1c6182727d724e1476c4d6f39b6aea70
treeff51888002e1acb78ef111fa00bc50b6a924a63a
parent41093876f496ab40051b71a0571038e6efe51fb3
boot: simplify bootmeth_vbe_simple_ft_fixup()

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@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
boot/vbe_simple.c