]> Gentwo Git Trees - linux/.git/commit
x86/crash: remove redundant 0 value initialization
authorLiao Yuanhong <liaoyuanhong@vivo.com>
Mon, 18 Aug 2025 12:35:28 +0000 (20:35 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 14 Sep 2025 00:32:48 +0000 (17:32 -0700)
commit6c609f36398adfe0de712a9025cc1065074b9abc
treed3ded80f2d247010b565974409468692fcd76099
parent228bf041a7fdf8c94dfc57df1e2e918fefce1a25
x86/crash: remove redundant 0 value initialization

The crash_mem struct is already zeroed by vzalloc(). It's redundant to
initialize cmem->nr_ranges to 0.

Link: https://lkml.kernel.org/r/20250818123530.635234-1-liaoyuanhong@vivo.com
Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Borislav Betkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Coiby Xu <coxu@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Bohac <jbohac@suse.cz>
Cc: Thomas Gleinxer <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/kernel/crash.c