[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL v2 10/30] util/vhost-user-server: drop unnecessary QOM cast
From: |
Stefan Hajnoczi |
Subject: |
[PULL v2 10/30] util/vhost-user-server: drop unnecessary QOM cast |
Date: |
Mon, 12 Oct 2020 19:27:40 +0100 |
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>
---
util/vhost-user-server.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/vhost-user-server.c b/util/vhost-user-server.c
index 2cd0cf8277..ebe47885f5 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);
}
--
2.26.2
- [PULL v2 00/30] Block patches, Stefan Hajnoczi, 2020/10/12
- [PULL v2 01/30] block/nvme: Add driver statistics for access alignment and hw errors, Stefan Hajnoczi, 2020/10/12
- [PULL v2 02/30] libvhost-user: Allow vu_message_read to be replaced, Stefan Hajnoczi, 2020/10/12
- [PULL v2 03/30] libvhost-user: remove watch for kick_fd when de-initialize vu-dev, Stefan Hajnoczi, 2020/10/12
- [PULL v2 04/30] util/vhost-user-server: generic vhost user server, Stefan Hajnoczi, 2020/10/12
- [PULL v2 06/30] block/export: vhost-user block device backend server, Stefan Hajnoczi, 2020/10/12
- [PULL v2 08/30] MAINTAINERS: Add vhost-user block device backend server maintainer, Stefan Hajnoczi, 2020/10/12
- [PULL v2 10/30] util/vhost-user-server: drop unnecessary QOM cast,
Stefan Hajnoczi <=
- [PULL v2 05/30] block: move logical block size check function to a common utility function, Stefan Hajnoczi, 2020/10/12
- [PULL v2 07/30] test: new qTest case to test the vhost-user-blk-server, Stefan Hajnoczi, 2020/10/12
- [PULL v2 12/30] block/export: consolidate request structs into VuBlockReq, Stefan Hajnoczi, 2020/10/12
- [PULL v2 11/30] util/vhost-user-server: drop unnecessary watch deletion, Stefan Hajnoczi, 2020/10/12
- [PULL v2 09/30] util/vhost-user-server: s/fileds/fields/ typo fix, Stefan Hajnoczi, 2020/10/12
- [PULL v2 13/30] util/vhost-user-server: drop unused DevicePanicNotifier, Stefan Hajnoczi, 2020/10/12
- [PULL v2 14/30] util/vhost-user-server: fix memory leak in vu_message_read(), Stefan Hajnoczi, 2020/10/12
- [PULL v2 15/30] util/vhost-user-server: check EOF when reading payload, Stefan Hajnoczi, 2020/10/12
- [PULL v2 17/30] block/export: report flush errors, Stefan Hajnoczi, 2020/10/12
- [PULL v2 18/30] block/export: convert vhost-user-blk server to block export API, Stefan Hajnoczi, 2020/10/12