Remove double error message in qemu_option_set()

qemu_opt_set() prints an error message in all failure cases, so
qemu_set_option() doesn't need to print another error.

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:00 +01:00 committed by Anthony Liguori
parent a676968b7f
commit 51693297d7

View File

@ -209,8 +209,6 @@ int qemu_set_option(const char *str)
} }
if (qemu_opt_set(opts, arg, str+offset+1) == -1) { if (qemu_opt_set(opts, arg, str+offset+1) == -1) {
qemu_error("failed to set \"%s\" for %s \"%s\"\n",
arg, lists[i]->name, id);
return -1; return -1;
} }
return 0; return 0;