summary refs log tree commit diff stats
path: root/ui/vnc-ws.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-06-01 11:34:52 +0200
committerThomas Huth <thuth@redhat.com>2023-06-05 20:48:34 +0200
commit7d5b0d68647c8f966c6e4e68ed669127186b4701 (patch)
treea2018e6d48f88a710cc1b7935b307cdd5ae77651 /ui/vnc-ws.c
parente3e2c0c82bd0b9678f7950f37f9a089301d47813 (diff)
downloadfocaccia-qemu-7d5b0d68647c8f966c6e4e68ed669127186b4701.tar.gz
focaccia-qemu-7d5b0d68647c8f966c6e4e68ed669127186b4701.zip
bulk: Remove pointless QOM casts
Mechanical change running Coccinelle spatch with content
generated from the qom-cast-macro-clean-cocci-gen.py added
in the previous commit.

Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230601093452.38972-3-philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'ui/vnc-ws.c')
-rw-r--r--ui/vnc-ws.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/vnc-ws.c b/ui/vnc-ws.c
index 6d79f3e5a5..9e3503d93d 100644
--- a/ui/vnc-ws.c
+++ b/ui/vnc-ws.c
@@ -40,9 +40,9 @@ static void vncws_tls_handshake_done(QIOTask *task,
         if (vs->ioc_tag) {
             g_source_remove(vs->ioc_tag);
         }
-        vs->ioc_tag = qio_channel_add_watch(
-            QIO_CHANNEL(vs->ioc), G_IO_IN | G_IO_HUP | G_IO_ERR,
-            vncws_handshake_io, vs, NULL);
+        vs->ioc_tag = qio_channel_add_watch(vs->ioc,
+                                            G_IO_IN | G_IO_HUP | G_IO_ERR,
+                                            vncws_handshake_io, vs, NULL);
     }
 }