diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-06-01 11:34:52 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2023-06-05 20:48:34 +0200 |
commit | 7d5b0d68647c8f966c6e4e68ed669127186b4701 (patch) | |
tree | a2018e6d48f88a710cc1b7935b307cdd5ae77651 /chardev/char-pty.c | |
parent | e3e2c0c82bd0b9678f7950f37f9a089301d47813 (diff) | |
download | qemu-7d5b0d68647c8f966c6e4e68ed669127186b4701.zip qemu-7d5b0d68647c8f966c6e4e68ed669127186b4701.tar.gz qemu-7d5b0d68647c8f966c6e4e68ed669127186b4701.tar.bz2 |
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 'chardev/char-pty.c')
-rw-r--r-- | chardev/char-pty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chardev/char-pty.c b/chardev/char-pty.c index 92fd33c..4e5deac 100644 --- a/chardev/char-pty.c +++ b/chardev/char-pty.c @@ -334,7 +334,7 @@ static void char_pty_open(Chardev *chr, s = PTY_CHARDEV(chr); s->ioc = QIO_CHANNEL(qio_channel_file_new_fd(master_fd)); name = g_strdup_printf("chardev-pty-%s", chr->label); - qio_channel_set_name(QIO_CHANNEL(s->ioc), name); + qio_channel_set_name(s->ioc, name); g_free(name); s->timer_src = NULL; *be_opened = false; |