aboutsummaryrefslogtreecommitdiff
path: root/migration
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 /migration
parente3e2c0c82bd0b9678f7950f37f9a089301d47813 (diff)
downloadqemu-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 'migration')
-rw-r--r--migration/fd.c4
-rw-r--r--migration/multifd.c2
-rw-r--r--migration/yank_functions.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/migration/fd.c b/migration/fd.c
index 6f2f504..0eb677d 100644
--- a/migration/fd.c
+++ b/migration/fd.c
@@ -38,7 +38,7 @@ void fd_start_outgoing_migration(MigrationState *s, const char *fdname, Error **
return;
}
- qio_channel_set_name(QIO_CHANNEL(ioc), "migration-fd-outgoing");
+ qio_channel_set_name(ioc, "migration-fd-outgoing");
migration_channel_connect(s, ioc, NULL, NULL);
object_unref(OBJECT(ioc));
}
@@ -68,7 +68,7 @@ void fd_start_incoming_migration(const char *fdname, Error **errp)
return;
}
- qio_channel_set_name(QIO_CHANNEL(ioc), "migration-fd-incoming");
+ qio_channel_set_name(ioc, "migration-fd-incoming");
qio_channel_add_watch_full(ioc, G_IO_IN,
fd_accept_incoming_migration,
NULL, NULL,
diff --git a/migration/multifd.c b/migration/multifd.c
index 0bf5958..3387d82 100644
--- a/migration/multifd.c
+++ b/migration/multifd.c
@@ -894,7 +894,7 @@ static void multifd_new_send_channel_async(QIOTask *task, gpointer opaque)
trace_multifd_new_send_channel_async(p->id);
if (!qio_task_propagate_error(task, &local_err)) {
- p->c = QIO_CHANNEL(sioc);
+ p->c = sioc;
qio_channel_set_delay(p->c, false);
p->running = true;
if (multifd_channel_connect(p, sioc, local_err)) {
diff --git a/migration/yank_functions.c b/migration/yank_functions.c
index 8c08aef..d5a710a 100644
--- a/migration/yank_functions.c
+++ b/migration/yank_functions.c
@@ -35,7 +35,7 @@ void migration_ioc_register_yank(QIOChannel *ioc)
if (migration_ioc_yank_supported(ioc)) {
yank_register_function(MIGRATION_YANK_INSTANCE,
migration_yank_iochannel,
- QIO_CHANNEL(ioc));
+ ioc);
}
}
@@ -44,7 +44,7 @@ void migration_ioc_unregister_yank(QIOChannel *ioc)
if (migration_ioc_yank_supported(ioc)) {
yank_unregister_function(MIGRATION_YANK_INSTANCE,
migration_yank_iochannel,
- QIO_CHANNEL(ioc));
+ ioc);
}
}