path: root/qemu-option.c
diff options
authorMark McLoughlin <markmc@redhat.com>2009-10-06 12:16:59 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-06 14:36:11 -0500
commita676968b7f71d8d94d4e083fadb9661f37846d0a (patch)
tree5a71a3e928196e3f4795b05e91cc9b1cc05eb972 /qemu-option.c
parentfb12577c2abb025178720f1c079d6dcd4b416108 (diff)
Remove bogus error message from qemu_opts_set()
The only way qemu_opts_create() can fail is if a QemuOpts with that id already exists and fail_if_exists=1. In that case, we already print an error which makes more sense than the one in qemu_opts_set(). Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-option.c')
1 files changed, 0 insertions, 2 deletions
diff --git a/qemu-option.c b/qemu-option.c
index 089228656..293f94cf0 100644
--- a/qemu-option.c
+++ b/qemu-option.c
@@ -670,8 +670,6 @@ int qemu_opts_set(QemuOptsList *list, const char *id,
opts = qemu_opts_create(list, id, 1);
if (opts == NULL) {
- fprintf(stderr, "id \"%s\" not found for \"%s\"\n",
- id, list->name);
return -1;
return qemu_opt_set(opts, name, value);