Re: [U-Boot] [PATCH v2 05/11] efi_loader: simplify calling efi_init_obj_list

2018-03-23 Thread Simon Glass
On 15 February 2018 at 00:31, Heinrich Schuchardt wrote: > 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

[U-Boot] [PATCH v2 05/11] efi_loader: simplify calling efi_init_obj_list

2018-02-14 Thread Heinrich Schuchardt
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 Signed-off-by: Heinrich Schuchardt