efi_loader: Cleanup get_var duplication
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Sat, 27 Mar 2021 08:56:07 +0000 (10:56 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 10 Apr 2021 10:00:24 +0000 (12:00 +0200)
commitf4dc1bc9f0ad0ee1d23aa185a4e8d9e904e6d88e
tree4b72f6700c0f20c007e71ebf2c1e0858833c80f1
parentcd64031c16d29856cb13275d89b0742f857cb3ff
efi_loader: Cleanup get_var duplication

get_var() is defined statically in efi_bootmgr.c and doesn't properly
check a buffer allocation.  Remove it completely and use the exported
function from efi_var_common.c that does the same thing

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_bootmgr.c