Remove double error message for -device option parsing

qemu_opts_parse() gives a suitable error message in all failure cases
so we can remove the error message from the caller.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Mark McLoughlin 2009-10-06 12:17:01 +01:00 committed by Anthony Liguori
parent 51693297d7
commit b386becf36
1 changed files with 1 additions and 3 deletions

4
vl.c
View File

@ -5359,9 +5359,7 @@ int main(int argc, char **argv, char **envp)
add_device_config(DEV_USB, optarg); add_device_config(DEV_USB, optarg);
break; break;
case QEMU_OPTION_device: case QEMU_OPTION_device:
opts = qemu_opts_parse(&qemu_device_opts, optarg, "driver"); if (!qemu_opts_parse(&qemu_device_opts, optarg, "driver")) {
if (!opts) {
fprintf(stderr, "parse error: %s\n", optarg);
exit(1); exit(1);
} }
break; break;