mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
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>
This commit is contained in:
committed by
Thomas Huth
parent
e3e2c0c82b
commit
7d5b0d6864
@ -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;
|
||||
|
Reference in New Issue
Block a user