mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
util/vhost-user-server: drop unused DevicePanicNotifier
The device panic notifier callback is not used. Drop it. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20200924151549.913737-7-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
df6af7ce77
commit
47ba680466
3 changed files with 1 additions and 11 deletions
|
@ -81,10 +81,6 @@ static void panic_cb(VuDev *vu_dev, const char *buf)
|
|||
close_client(server);
|
||||
}
|
||||
|
||||
if (server->device_panic_notifier) {
|
||||
server->device_panic_notifier(server);
|
||||
}
|
||||
|
||||
/*
|
||||
* Set the callback function for network listener so another
|
||||
* vhost-user client can connect to this server
|
||||
|
@ -385,7 +381,6 @@ bool vhost_user_server_start(VuServer *server,
|
|||
SocketAddress *socket_addr,
|
||||
AioContext *ctx,
|
||||
uint16_t max_queues,
|
||||
DevicePanicNotifierFn *device_panic_notifier,
|
||||
const VuDevIface *vu_iface,
|
||||
Error **errp)
|
||||
{
|
||||
|
@ -402,7 +397,6 @@ bool vhost_user_server_start(VuServer *server,
|
|||
.vu_iface = vu_iface,
|
||||
.max_queues = max_queues,
|
||||
.ctx = ctx,
|
||||
.device_panic_notifier = device_panic_notifier,
|
||||
};
|
||||
|
||||
qio_net_listener_set_name(server->listener, "vhost-user-backend-listener");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue