]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
vhost_net: make vhost_zerocopy_signal_used() return void
authorJason Wang <jasowang@redhat.com>
Mon, 2 Sep 2013 08:40:56 +0000 (16:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 02:46:57 +0000 (22:46 -0400)
None of its caller use its return value, so let it return void.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/net.c

index 969a85960e9f6bf09a5bb9a6b1ea828d9f5ae9fb..280ee66ae552fdfd4a66f12a76de0e6363631439 100644 (file)
@@ -276,8 +276,8 @@ static void copy_iovec_hdr(const struct iovec *from, struct iovec *to,
  * of used idx. Once lower device DMA done contiguously, we will signal KVM
  * guest used idx.
  */
-static int vhost_zerocopy_signal_used(struct vhost_net *net,
-                                     struct vhost_virtqueue *vq)
+static void vhost_zerocopy_signal_used(struct vhost_net *net,
+                                      struct vhost_virtqueue *vq)
 {
        struct vhost_net_virtqueue *nvq =
                container_of(vq, struct vhost_net_virtqueue, vq);
@@ -297,7 +297,6 @@ static int vhost_zerocopy_signal_used(struct vhost_net *net,
        }
        if (j)
                nvq->done_idx = i;
-       return j;
 }
 
 static void vhost_zerocopy_callback(struct ubuf_info *ubuf, bool success)