diff options
author | Markus Armbruster <armbru@redhat.com> | 2023-09-28 15:19:28 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-10-11 11:17:03 +0200 |
commit | c07d19622ce5ece8097c393ad5974f0ecea50185 (patch) | |
tree | ed858b22d570c80aaed11f9c5183cb20b5bb8009 /migration | |
parent | b72eacf3c014ba7cbccee57a791589822e175580 (diff) | |
download | qemu-c07d19622ce5ece8097c393ad5974f0ecea50185.zip qemu-c07d19622ce5ece8097c393ad5974f0ecea50185.tar.gz qemu-c07d19622ce5ece8097c393ad5974f0ecea50185.tar.bz2 |
migration/rdma: Clean up qemu_rdma_data_init()'s return type
qemu_rdma_data_init() return type is void *. It actually returns
RDMAContext *, and all its callers assign the value to an
RDMAContext *. Unclean.
Return RDMAContext * instead.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Li Zhijian <lizhijian@fujitsu.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20230928132019.2544702-3-armbru@redhat.com>
Diffstat (limited to 'migration')
-rw-r--r-- | migration/rdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/rdma.c b/migration/rdma.c index e72864d..1432fb8 100644 --- a/migration/rdma.c +++ b/migration/rdma.c @@ -2759,7 +2759,7 @@ static void qemu_rdma_return_path_dest_init(RDMAContext *rdma_return_path, rdma_return_path->is_return_path = true; } -static void *qemu_rdma_data_init(const char *host_port, Error **errp) +static RDMAContext *qemu_rdma_data_init(const char *host_port, Error **errp) { RDMAContext *rdma = NULL; InetSocketAddress *addr; |