mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
vl: remove shadowed local variables
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
+4
-5
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user