summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-10-16 13:26:14 (GMT)
committerRusty Russell <rusty@rustcorp.com.au>2012-12-18 04:50:33 (GMT)
commit9ed4cb073438e2154778f0d693d966359afd6549 (patch)
treed69dcb3b8a8cf9b719a8ee648551debbbf3152b6 /drivers/char
parent7bedc7dc7c05e6072dc81da770f70c683c45da10 (diff)
downloadlinux-fsl-qoriq-9ed4cb073438e2154778f0d693d966359afd6549.tar.xz
virtio_net: don't rely on virtqueue_add_buf() returning capacity.
Now we can easily use vq->num_free to determine if there are descriptors left in the queue, we're about to change virtqueue_add_buf() to return 0 on success. The virtio_net driver is the only one which actually uses the return value, so change that. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions