Commit 89a216ed authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

virtio: fix comments, readability



Fix a couple of comments to match reality.
Initialize config_driver_disabled to be consistent with
other fields (note: the structure is already zero initialized,
so this is not a bugfix as such).

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Message-Id: <7b74a55a5f3dc066d954472f5b68c29022f11b43.1752094439.git.mst@redhat.com>
Acked-by: default avatarJason Wang <jasowang@redhat.com>
parent 347e9f50
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ EXPORT_SYMBOL_GPL(virtio_config_changed);

/**
 * virtio_config_driver_disable - disable config change reporting by drivers
 * @dev: the device to reset
 * @dev: the device to disable
 *
 * This is only allowed to be called by a driver and disabling can't
 * be nested.
@@ -162,7 +162,7 @@ EXPORT_SYMBOL_GPL(virtio_config_driver_disable);

/**
 * virtio_config_driver_enable - enable config change reporting by drivers
 * @dev: the device to reset
 * @dev: the device to enable
 *
 * This is only allowed to be called by a driver and enabling can't
 * be nested.
@@ -530,6 +530,7 @@ int register_virtio_device(struct virtio_device *dev)
		goto out_ida_remove;

	spin_lock_init(&dev->config_lock);
	dev->config_driver_disabled = false;
	dev->config_core_enabled = false;
	dev->config_change_pending = false;