mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kexec: Delete an unnecessary comparison
@ 2020-08-13 12:45 Youling Tang
  2020-08-14  5:51 ` Dave Young
  2020-08-14  6:07 ` Joe Perches
  0 siblings, 2 replies; 4+ messages in thread
From: Youling Tang @ 2020-08-13 12:45 UTC (permalink / raw)
  To: Eric Biederman, Vivek Goyal; +Cc: kexec, linux-kernel

Regardless of whether the ret value is zero or non-zero, the trajectory
of the program execution is the same, so there is no need to compare.

Signed-off-by: Youling Tang <tangyouling@loongson.cn>
---
 kernel/kexec_file.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c
index 78c0837..3ad0ae2 100644
--- a/kernel/kexec_file.c
+++ b/kernel/kexec_file.c
@@ -800,8 +800,6 @@ static int kexec_calculate_store_digests(struct kimage *image)
 
 		ret = kexec_purgatory_get_set_symbol(image, "purgatory_sha256_digest",
 						     digest, SHA256_DIGEST_SIZE, 0);
-		if (ret)
-			goto out_free_digest;
 	}
 
 out_free_digest:
-- 
2.1.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-14 10:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-13 12:45 [PATCH] kexec: Delete an unnecessary comparison Youling Tang
2020-08-14  5:51 ` Dave Young
2020-08-14  6:07 ` Joe Perches
2020-08-14 10:11   ` Youling Tang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®