qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 04/19] Remove double error message for -device optio


From: Mark McLoughlin
Subject: [Qemu-devel] [PATCH 04/19] Remove double error message for -device option parsing
Date: Thu, 10 Sep 2009 16:18:46 +0100

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 <address@hidden>
---
 vl.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/vl.c b/vl.c
index 6da83a6..ed07d50 100644
--- a/vl.c
+++ b/vl.c
@@ -5251,11 +5251,8 @@ 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;
             case QEMU_OPTION_smp:
                 smp_parse(optarg);
-- 
1.6.2.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]