[U-Boot] [PATCH v2 4/7] efi_loader: refactor efi_create_event