diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2020-09-24 16:15:39 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2020-10-23 13:42:16 +0100 |
commit | 46a096c87a6464dfbdd71a89e2143c55ef45395c (patch) | |
tree | d687e80900284d8835cbd3989835b661f102d556 | |
parent | 1d7874568b0984ae7880e6ccd0d31c0aba442254 (diff) | |
download | qemu-46a096c87a6464dfbdd71a89e2143c55ef45395c.zip qemu-46a096c87a6464dfbdd71a89e2143c55ef45395c.tar.gz qemu-46a096c87a6464dfbdd71a89e2143c55ef45395c.tar.bz2 |
util/vhost-user-server: drop unnecessary QOM cast
We already have access to the value with the correct type (ioc and sioc
are the same QIOChannel).
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20200924151549.913737-4-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r-- | util/vhost-user-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/vhost-user-server.c b/util/vhost-user-server.c index 9bd33e0..443ab74 100644 --- a/util/vhost-user-server.c +++ b/util/vhost-user-server.c @@ -337,7 +337,7 @@ static void vu_accept(QIONetListener *listener, QIOChannelSocket *sioc, server->ioc = QIO_CHANNEL(sioc); object_ref(OBJECT(server->ioc)); qio_channel_attach_aio_context(server->ioc, server->ctx); - qio_channel_set_blocking(QIO_CHANNEL(server->sioc), false, NULL); + qio_channel_set_blocking(server->ioc, false, NULL); vu_client_start(server); } |