mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
kexec_core: remove redundant 0 value initialization
The kimage struct is already zeroed by kzalloc(). It's redundant to initialize image->head to 0. Link: https://lkml.kernel.org/r/20250825123307.306634-1-liaoyuanhong@vivo.com Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
493977de14
commit
13818f7b8c
@@ -233,7 +233,6 @@ struct kimage *do_kimage_alloc_init(void)
|
|||||||
if (!image)
|
if (!image)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
image->head = 0;
|
|
||||||
image->entry = &image->head;
|
image->entry = &image->head;
|
||||||
image->last_entry = &image->head;
|
image->last_entry = &image->head;
|
||||||
image->control_page = ~0; /* By default this does not apply */
|
image->control_page = ~0; /* By default this does not apply */
|
||||||
|
|||||||
Reference in New Issue
Block a user