virtio: make virtqueue_add_buf() returning 0 on success, not capacity.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 16 Oct 2012 13:26:15 +0000 (23:56 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 18 Dec 2012 04:50:34 +0000 (15:20 +1030)
commit98e8c6bc66048db6f921ccd5b24f0e09804cfcca
tree42ba3a2f6e3ce22741c6a970ca99b7beab0ffbbb
parent49e86f16866fbf8e3c9a6b0770eb6f3c167f4b72
virtio: make virtqueue_add_buf() returning 0 on success, not capacity.

Now noone relies on this behavior, we simplify virtqueue_add_buf() so it
return 0 or -errno.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_ring.c