]> git.sur5r.net Git - u-boot/commit
efi_loader: simplify calling efi_init_obj_list
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 3 Mar 2018 14:28:58 +0000 (15:28 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 4 Apr 2018 09:00:06 +0000 (11:00 +0200)
commit098a6cdd1cc519f6c75b5e5de91c6655500a188a
treeb8b52fe85597f69b6313aaaf8c7eabb4950e04b7
parentd7b181d57d0c7080facce755c4b9ff7a22436a48
efi_loader: simplify calling efi_init_obj_list

efi_init_obj_list() should be executed only once.

Rather than having the caller check this variable and the callee set it,
move all access to the variable inside the function. This reduces the
logic needed to call efi_init_obj_list().

Suggested-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
cmd/bootefi.c