mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-09-06 21:51:49 +00:00
kvm tools: Cleanup virtio code some more
This patch cleans up some more style problems in virtio code. Cc: Asias He <asias.hejun@gmail.com> Cc: Cyrill Gorcunov <gorcunov@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Prasad Joshi <prasadjoshi124@gmail.com> Cc: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
committed by
Will Deacon
parent
80ffe4d196
commit
407475bf94
@@ -10,6 +10,7 @@
|
||||
struct vring_used_elem *virt_queue__set_used_elem(struct virt_queue *queue, u32 head, u32 len)
|
||||
{
|
||||
struct vring_used_elem *used_elem;
|
||||
|
||||
used_elem = &queue->vring.used->ring[queue->vring.used->idx % queue->vring.num];
|
||||
used_elem->id = head;
|
||||
used_elem->len = len;
|
||||
|
||||
Reference in New Issue
Block a user