Skip to content

Commit e412d3a

Browse files
stefanhaRHtorvalds
authored andcommitted
virtio: fix typo in vring_need_event() doc comment
Here the "other side" refers to the guest or host. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent feda5f9 commit e412d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/uapi/linux/virtio_ring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static inline unsigned vring_size(unsigned int num, unsigned long align)
155155
}
156156

157157
/* The following is used with USED_EVENT_IDX and AVAIL_EVENT_IDX */
158-
/* Assuming a given event_idx value from the other size, if
158+
/* Assuming a given event_idx value from the other side, if
159159
* we have just incremented index from old to new_idx,
160160
* should we trigger an event? */
161161
static inline int vring_need_event(__u16 event_idx, __u16 new_idx, __u16 old)

0 commit comments

Comments
 (0)