Skip to content

Commit a39d13e

Browse files
Liming Wumstsirkin
authored andcommitted
virtio_pci: Fix misleading comment for queue vector
This patch fixes misleading comments in both legacy and modern virtio-pci device implementations. The comments previously referred to the "config vector" for parameters and return values of the `vp_legacy_queue_vector()` and `vp_modern_queue_vector()` functions, which is incorrect. Signed-off-by: Liming Wu <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 1b237f1 commit a39d13e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/virtio/virtio_pci_legacy_dev.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ EXPORT_SYMBOL_GPL(vp_legacy_set_status);
140140
* vp_legacy_queue_vector - set the MSIX vector for a specific virtqueue
141141
* @ldev: the legacy virtio-pci device
142142
* @index: queue index
143-
* @vector: the config vector
143+
* @vector: the queue vector
144144
*
145-
* Returns the config vector read from the device
145+
* Returns the queue vector read from the device
146146
*/
147147
u16 vp_legacy_queue_vector(struct virtio_pci_legacy_device *ldev,
148148
u16 index, u16 vector)

drivers/virtio/virtio_pci_modern_dev.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,9 @@ EXPORT_SYMBOL_GPL(vp_modern_set_queue_reset);
546546
* vp_modern_queue_vector - set the MSIX vector for a specific virtqueue
547547
* @mdev: the modern virtio-pci device
548548
* @index: queue index
549-
* @vector: the config vector
549+
* @vector: the queue vector
550550
*
551-
* Returns the config vector read from the device
551+
* Returns the queue vector read from the device
552552
*/
553553
u16 vp_modern_queue_vector(struct virtio_pci_modern_device *mdev,
554554
u16 index, u16 vector)

0 commit comments

Comments
 (0)