From b201eec5e76e4f34a7d91d1a103bcc045dc6cfe1 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Wed, 18 May 2022 15:51:29 -0400 Subject: [PATCH] mok.c: fix a trivial dead assignment scan-build noticed that when we split this out, this assignment was no longer in a loop, and so doesn't do anything. Signed-off-by: Peter Jones --- mok.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mok.c b/mok.c index a8c8be6b5..d1e51d0fc 100644 --- a/mok.c +++ b/mok.c @@ -873,7 +873,6 @@ EFI_STATUS import_one_mok_state(struct mok_state_variable *v, v->data = AllocateZeroPool(4); v->data[0] = 0x01; v->data_size = 1; - efi_status = EFI_SUCCESS; } else if (efi_status == EFI_NOT_FOUND) { v->data = NULL; v->data_size = 0;