From: Janosch Frank Date: Thu, 9 Nov 2023 12:04:41 +0000 (+0000) Subject: target/s390x/dump: Remove unneeded dump info function pointer init X-Git-Tag: v8.2.0-rc0~1^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=816644b1219900875f47d7adf9bfb283f1b29aa0;p=thirdparty%2Fqemu.git target/s390x/dump: Remove unneeded dump info function pointer init dump_state_prepare() now sets the function pointers to NULL so we only need to touch them if we're going to use them. Signed-off-by: Janosch Frank Reviewed-by: Marc-André Lureau Reviewed-by: Thomas Huth Message-ID: <20231109120443.185979-2-frankja@linux.ibm.com> Signed-off-by: Thomas Huth --- diff --git a/target/s390x/arch_dump.c b/target/s390x/arch_dump.c index 51a2116515c..bdb0bfa0e76 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -448,10 +448,6 @@ int cpu_get_dump_info(ArchDumpInfo *info, info->arch_sections_add_fn = *arch_sections_add; info->arch_sections_write_hdr_fn = *arch_sections_write_hdr; info->arch_sections_write_fn = *arch_sections_write; - } else { - info->arch_sections_add_fn = NULL; - info->arch_sections_write_hdr_fn = NULL; - info->arch_sections_write_fn = NULL; } return 0; }