From: Rusty Russell Date: Tue, 16 Oct 2012 13:26:14 +0000 (+1030) Subject: virtio_net: don't rely on virtqueue_add_buf() returning capacity. X-Git-Tag: v3.8-rc1~28^2~16 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ed4cb073438e2154778f0d693d966359afd6549;p=pandora-kernel.git 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 Acked-by: Michael S. Tsirkin --- Reading git-diff-tree failed