[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 05/19] vl: remove shadowed local variables
From: |
Paolo Bonzini |
Subject: |
[PULL 05/19] vl: remove shadowed local variables |
Date: |
Tue, 26 Sep 2023 18:59:01 +0200 |
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
softmmu/vl.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/softmmu/vl.c b/softmmu/vl.c
index db04f98c36f..59a472a0b10 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -3214,7 +3214,6 @@ void qemu_init(int argc, char **argv)
}
break;
case QEMU_OPTION_watchdog_action: {
- QemuOpts *opts;
opts = qemu_opts_create(qemu_find_opts("action"), NULL, 0,
&error_abort);
qemu_opt_set(opts, "watchdog", optarg, &error_abort);
break;
@@ -3525,16 +3524,16 @@ void qemu_init(int argc, char **argv)
break;
case QEMU_OPTION_compat:
{
- CompatPolicy *opts;
+ CompatPolicy *opts_policy;
Visitor *v;
v = qobject_input_visitor_new_str(optarg, NULL,
&error_fatal);
- visit_type_CompatPolicy(v, NULL, &opts, &error_fatal);
- QAPI_CLONE_MEMBERS(CompatPolicy, &compat_policy, opts);
+ visit_type_CompatPolicy(v, NULL, &opts_policy,
&error_fatal);
+ QAPI_CLONE_MEMBERS(CompatPolicy, &compat_policy,
opts_policy);
- qapi_free_CompatPolicy(opts);
+ qapi_free_CompatPolicy(opts_policy);
visit_free(v);
break;
}
--
2.41.0
- [PULL 04/19] hw/scsi/scsi-disk: Disallow block sizes smaller than 512 [CVE-2023-42467], (continued)
- [PULL 04/19] hw/scsi/scsi-disk: Disallow block sizes smaller than 512 [CVE-2023-42467], Paolo Bonzini, 2023/09/26
- [PULL 07/19] ui/vnc: fix handling of VNC_FEATURE_XVP, Paolo Bonzini, 2023/09/26
- [PULL 06/19] ui/vnc: fix debug output for invalid audio message, Paolo Bonzini, 2023/09/26
- [PULL 12/19] target/i386/cpu: avoid shadowed local variables, Paolo Bonzini, 2023/09/26
- [PULL 08/19] mptsas: avoid shadowed local variables, Paolo Bonzini, 2023/09/26
- [PULL 10/19] m48t59-test: avoid possible overflow on ABS, Paolo Bonzini, 2023/09/26
- [PULL 17/19] block: mark mixed functions that can suspend, Paolo Bonzini, 2023/09/26
- [PULL 14/19] target/i386/seg_helper: introduce tss_set_busy, Paolo Bonzini, 2023/09/26
- [PULL 02/19] seabios: remove PCI drivers from bios.bin, Paolo Bonzini, 2023/09/26
- [PULL 15/19] target/i386/seg_helper: remove shadowed variable, Paolo Bonzini, 2023/09/26
- [PULL 05/19] vl: remove shadowed local variables,
Paolo Bonzini <=
- [PULL 13/19] target/i386/translate: avoid shadowed local variables, Paolo Bonzini, 2023/09/26
- [PULL 11/19] target/i386/kvm: eliminate shadowed local variables, Paolo Bonzini, 2023/09/26
- [PULL 09/19] pm_smbus: rename variable to avoid shadowing, Paolo Bonzini, 2023/09/26
- [PULL 19/19] audio: remove shadowed locals, Paolo Bonzini, 2023/09/26
- [PULL 16/19] target/i386/svm_helper: eliminate duplicate local variable, Paolo Bonzini, 2023/09/26
- [PULL 18/19] compiler: introduce QEMU_ANNOTATE, Paolo Bonzini, 2023/09/26
- Re: [PULL 00/19] Misc patches for 2023-09-26, Stefan Hajnoczi, 2023/09/27