Message ID | 20200610131011.1941209-2-laurent@vivier.eu |
---|---|
State | New |
Headers | show |
Series | [PULL,v2,01/16] Fix parameter type in vhost migration log path | expand |
diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index aff98a0ede56..aa06a3691919 100644 --- a/hw/virtio/vhost.c +++ b/hw/virtio/vhost.c @@ -809,12 +809,12 @@ err_features: return r; } -static int vhost_migration_log(MemoryListener *listener, int enable) +static int vhost_migration_log(MemoryListener *listener, bool enable) { struct vhost_dev *dev = container_of(listener, struct vhost_dev, memory_listener); int r; - if (!!enable == dev->log_enabled) { + if (enable == dev->log_enabled) { return 0; } if (!dev->started) {