vl: Eliminate a superfluous local variable
CODING_STYLE frowns upon mixing declarations and statements. main() has such a declaration. Clean up by eliminating the variable. Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
a629f2fdba
commit
6924bc1eef
4
vl.c
4
vl.c
@ -4404,7 +4404,8 @@ int main(int argc, char **argv, char **envp)
|
||||
|
||||
qdev_machine_init();
|
||||
|
||||
QEMUMachineInitArgs args = { .machine = machine,
|
||||
current_machine->init_args = (QEMUMachineInitArgs) {
|
||||
.machine = machine,
|
||||
.ram_size = ram_size,
|
||||
.boot_order = boot_order,
|
||||
.kernel_filename = kernel_filename,
|
||||
@ -4412,7 +4413,6 @@ int main(int argc, char **argv, char **envp)
|
||||
.initrd_filename = initrd_filename,
|
||||
.cpu_model = cpu_model };
|
||||
|
||||
current_machine->init_args = args;
|
||||
machine->init(¤t_machine->init_args);
|
||||
|
||||
audio_init();
|
||||
|
Loading…
Reference in New Issue
Block a user