mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
vl: Simplify call of parse_name()
main() checks for parse_name() failure even though it can't actually fail. That's okay. Simplify it to check by passing &error_fatal, like the other users of qemu_opts_foreach(). Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20181017082702.5581-36-armbru@redhat.com>
This commit is contained in:
parent
7c89fcbac8
commit
5343bda42b
1 changed files with 2 additions and 4 deletions
6
vl.c
6
vl.c
|
@ -3974,10 +3974,8 @@ int main(int argc, char **argv, char **envp)
|
|||
}
|
||||
#endif
|
||||
|
||||
if (qemu_opts_foreach(qemu_find_opts("name"),
|
||||
parse_name, NULL, NULL)) {
|
||||
exit(1);
|
||||
}
|
||||
qemu_opts_foreach(qemu_find_opts("name"),
|
||||
parse_name, NULL, &error_fatal);
|
||||
|
||||
#ifndef _WIN32
|
||||
qemu_opts_foreach(qemu_find_opts("add-fd"),
|
||||
|
|
Loading…
Reference in a new issue