Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <7b74a55a5f3dc066d954472f5b68c29022f11b43.1752094439.git.mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>

+3 -2
+3 -2
drivers/virtio/virtio.c
··· 147 147 148 148 /** 149 149 * virtio_config_driver_disable - disable config change reporting by drivers 150 - * @dev: the device to reset 150 + * @dev: the device to disable 151 151 * 152 152 * This is only allowed to be called by a driver and disabling can't 153 153 * be nested. ··· 162 162 163 163 /** 164 164 * virtio_config_driver_enable - enable config change reporting by drivers 165 - * @dev: the device to reset 165 + * @dev: the device to enable 166 166 * 167 167 * This is only allowed to be called by a driver and enabling can't 168 168 * be nested. ··· 530 530 goto out_ida_remove; 531 531 532 532 spin_lock_init(&dev->config_lock); 533 + dev->config_driver_disabled = false; 533 534 dev->config_core_enabled = false; 534 535 dev->config_change_pending = false; 535 536