Skip to contentSkip to conversation

kexec-remove-the-unneeded-result-variable.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Nov 15, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: kexec: remove the unneeded result variable
has been removed from the -mm tree. Its filename was
kexec-remove-the-unneeded-result-variable.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: ye xingchen <[email protected]>
Subject: kexec: remove the unneeded result variable
Date: Thu, 29 Sep 2022 12:29:34 +0800

Return the value kimage_add_entry() directly instead of storing it in another redundant variable.

---

 kernel/kexec_core.c |   10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
kernel/kexec_core.c renamed from kernel/kexec_core.c~kexec-remove-the-unneeded-result-variable +2 -8
@@ -561,23 +561,17 @@ static int kimage_add_entry(struct kimag
 static int kimage_set_destination(struct kimage *image,
 				   unsigned long destination)
 {
-	int result;
-
 	destination &= PAGE_MASK;
-	result = kimage_add_entry(image, destination | IND_DESTINATION);
 
-	return result;
+	return kimage_add_entry(image, destination | IND_DESTINATION);
 }
 
 
 static int kimage_add_page(struct kimage *image, unsigned long page)
 {
-	int result;
-
 	page &= PAGE_MASK;
-	result = kimage_add_entry(image, page | IND_SOURCE);
 
-	return result;
+	return kimage_add_entry(image, page | IND_SOURCE);
 }
 
 

_

Patches currently in -mm which might be from [email protected] are