summaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-10-06 12:17:01 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-06 14:36:11 -0500
commitb386becf368ce2757db46843e39218481ad34cd9 (patch)
treee5530ba36d46809e0380b0ee7a6b037dc90eb484 /vl.c
parent51693297d7c5cb4bd2a02b837d859c99bfb2d08f (diff)
downloadhqemu-b386becf368ce2757db46843e39218481ad34cd9.zip
hqemu-b386becf368ce2757db46843e39218481ad34cd9.tar.gz
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>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vl.c b/vl.c
index 75b640a..d52a1e4 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;
OpenPOWER on IntegriCloud