mirror of https://github.com/xqemu/xqemu.git
vhost-user: remove useless is_server field
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
c1bf3531ae
commit
b7fcb3603c
|
@ -27,7 +27,6 @@ typedef struct VhostUserState {
|
||||||
typedef struct VhostUserChardevProps {
|
typedef struct VhostUserChardevProps {
|
||||||
bool is_socket;
|
bool is_socket;
|
||||||
bool is_unix;
|
bool is_unix;
|
||||||
bool is_server;
|
|
||||||
} VhostUserChardevProps;
|
} VhostUserChardevProps;
|
||||||
|
|
||||||
VHostNetState *vhost_user_get_vhost_net(NetClientState *nc)
|
VHostNetState *vhost_user_get_vhost_net(NetClientState *nc)
|
||||||
|
@ -240,7 +239,6 @@ static int net_vhost_chardev_opts(void *opaque,
|
||||||
} else if (strcmp(name, "path") == 0) {
|
} else if (strcmp(name, "path") == 0) {
|
||||||
props->is_unix = true;
|
props->is_unix = true;
|
||||||
} else if (strcmp(name, "server") == 0) {
|
} else if (strcmp(name, "server") == 0) {
|
||||||
props->is_server = true;
|
|
||||||
} else {
|
} else {
|
||||||
error_setg(errp,
|
error_setg(errp,
|
||||||
"vhost-user does not support a chardev with option %s=%s",
|
"vhost-user does not support a chardev with option %s=%s",
|
||||||
|
|
Loading…
Reference in New Issue