aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2023-10-25 16:52:56 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2023-11-07 14:04:25 +0400
commit6d9ed4eb9470db8fb7294baa83a73b854419bcc4 (patch)
tree8b8654595197991da15fae281ad501780575023a /system
parent79a1f32559cbd1f2d8c6fc96c581fd460317a284 (diff)
downloadqemu-6d9ed4eb9470db8fb7294baa83a73b854419bcc4.zip
qemu-6d9ed4eb9470db8fb7294baa83a73b854419bcc4.tar.gz
qemu-6d9ed4eb9470db8fb7294baa83a73b854419bcc4.tar.bz2
vl: drop needless -spice checks
Since commit 5324e3e958e ("qemu-options: define -spice only #ifdef CONFIG_SPICE"), it is unnecessary to check at runtime for "-spice" option. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'system')
-rw-r--r--system/vl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/system/vl.c b/system/vl.c
index 3fb5692..fb0389e 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -3475,12 +3475,7 @@ void qemu_init(int argc, char **argv)
break;
#ifdef CONFIG_SPICE
case QEMU_OPTION_spice:
- olist = qemu_find_opts_err("spice", NULL);
- if (!olist) {
- error_report("spice support is disabled");
- exit(1);
- }
- opts = qemu_opts_parse_noisily(olist, optarg, false);
+ opts = qemu_opts_parse_noisily(qemu_find_opts("spice"), optarg, false);
if (!opts) {
exit(1);
}