* + kexec-remove-redundant-assignments.patch added to -mm tree
@ 2022-04-01 0:16 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-04-01 0:16 UTC (permalink / raw)
To: mm-commits, ndesaulniers, nathan, ebiederm, bhe, michalorzel.eng,
akpm
The patch titled
Subject: kexec: remove redundant assignments
has been added to the -mm tree. Its filename is
kexec-remove-redundant-assignments.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/kexec-remove-redundant-assignments.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/kexec-remove-redundant-assignments.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Michal Orzel <michalorzel.eng@gmail.com>
Subject: kexec: remove redundant assignments
Get rid of redund\x10ant assignments which end up in values not being
read either because they are overwritten or the function ends.
Reported by clang-tidy [deadcode.DeadStores]
Link: https://lkml.kernel.org/r/20220326180948.192154-1-michalorzel.eng@gmail.com
Signed-off-by: Michal Orzel <michalorzel.eng@gmail.com>
Acked-by: Baoquan He <bhe@redhat.com>
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Michal Orzel <michalorzel.eng@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
kernel/kexec_core.c | 2 --
1 file changed, 2 deletions(-)
--- a/kernel/kexec_core.c~kexec-remove-redundant-assignments
+++ a/kernel/kexec_core.c
@@ -768,7 +768,6 @@ static struct page *kimage_alloc_page(st
kimage_free_pages(old_page);
continue;
}
- addr = old_addr;
page = old_page;
break;
}
@@ -788,7 +787,6 @@ static int kimage_load_normal_segment(st
unsigned char __user *buf = NULL;
unsigned char *kbuf = NULL;
- result = 0;
if (image->file_mode)
kbuf = segment->kbuf;
else
_
Patches currently in -mm which might be from michalorzel.eng@gmail.com are
kexec-remove-redundant-assignments.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-01 0:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-01 0:16 + kexec-remove-redundant-assignments.patch added to -mm tree Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.