Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Liao Yuanhong and committed by
Andrew Morton
13818f7b 493977de

-1
-1
kernel/kexec_core.c
··· 233 233 if (!image) 234 234 return NULL; 235 235 236 - image->head = 0; 237 236 image->entry = &image->head; 238 237 image->last_entry = &image->head; 239 238 image->control_page = ~0; /* By default this does not apply */