projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e2cb49
)
arm64: kexec: remove unnecessary (void*) conversions
author
Yu Zhe
<yuzhe@nfschina.com>
Fri, 3 Mar 2023 02:57:15 +0000
(10:57 +0800)
committer
Will Deacon
<will@kernel.org>
Tue, 28 Mar 2023 14:43:57 +0000
(15:43 +0100)
Pointer variables of void * type do not require type cast.
Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Link:
https://lore.kernel.org/r/20230303025715.32570-1-yuzhe@nfschina.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/machine_kexec.c
patch
|
blob
|
history
diff --git
a/arch/arm64/kernel/machine_kexec.c
b/arch/arm64/kernel/machine_kexec.c
index
ce3d401
..
d35cb05
100644
(file)
--- a/
arch/arm64/kernel/machine_kexec.c
+++ b/
arch/arm64/kernel/machine_kexec.c
@@
-102,7
+102,7
@@
static void kexec_segment_flush(const struct kimage *kimage)
/* Allocates pages for kexec page table */
static void *kexec_page_alloc(void *arg)
{
- struct kimage *kimage =
(struct kimage *)
arg;
+ struct kimage *kimage = arg;
struct page *page = kimage_alloc_control_pages(kimage, 0);
void *vaddr = NULL;