Skip to content
Commit 335a64a5 authored by Amit Shah's avatar Amit Shah
Browse files

virtio: console: Use better variable names for fill_queue operation



We want to keep track of the number of buffers added to a vq. Use
nr_added_bufs instead of 'ret'.

Also, the users of fill_queue() overloaded a local 'err' variable to
check the numbers of buffers allocated. Use nr_added_bufs instead of
err.

Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
Reported-by: default avatarJuan Quintela <quintela@redhat.com>
parent 604b2ad7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment