]> git.dujemihanovic.xyz Git - u-boot.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)
commit49740e02555f72394fb319a8221bad833d8207db
treeff51888002e1acb78ef111fa00bc50b6a924a63a
parentd81eeacd48f760516abf12e69aba4ce5dd44545f
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