From: Mark McLoughlin Date: Tue, 6 Oct 2009 11:17:01 +0000 (+0100) Subject: Remove double error message for -device option parsing X-Git-Tag: v0.12.0-rc0~811 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b386becf368ce2757db46843e39218481ad34cd9;p=thirdparty%2Fqemu.git 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 Signed-off-by: Anthony Liguori --- diff --git a/vl.c b/vl.c index 75b640a6bec..d52a1e48bc4 100644 --- a/vl.c +++ b/vl.c @@ -5359,9 +5359,7 @@ int main(int argc, char **argv, char **envp) add_device_config(DEV_USB, optarg); break; case QEMU_OPTION_device: - opts = qemu_opts_parse(&qemu_device_opts, optarg, "driver"); - if (!opts) { - fprintf(stderr, "parse error: %s\n", optarg); + if (!qemu_opts_parse(&qemu_device_opts, optarg, "driver")) { exit(1); } break;