mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 23:24:50 +00:00
vhost_net: make vhost_zerocopy_signal_used() return void
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>
This commit is contained in:
parent
521a87cdae
commit
094afe7d55
1 changed files with 2 additions and 3 deletions
|
@ -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
|
* of used idx. Once lower device DMA done contiguously, we will signal KVM
|
||||||
* guest used idx.
|
* guest used idx.
|
||||||
*/
|
*/
|
||||||
static int vhost_zerocopy_signal_used(struct vhost_net *net,
|
static void vhost_zerocopy_signal_used(struct vhost_net *net,
|
||||||
struct vhost_virtqueue *vq)
|
struct vhost_virtqueue *vq)
|
||||||
{
|
{
|
||||||
struct vhost_net_virtqueue *nvq =
|
struct vhost_net_virtqueue *nvq =
|
||||||
container_of(vq, struct vhost_net_virtqueue, vq);
|
container_of(vq, struct vhost_net_virtqueue, vq);
|
||||||
|
@ -297,7 +297,6 @@ static int vhost_zerocopy_signal_used(struct vhost_net *net,
|
||||||
}
|
}
|
||||||
if (j)
|
if (j)
|
||||||
nvq->done_idx = i;
|
nvq->done_idx = i;
|
||||||
return j;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void vhost_zerocopy_callback(struct ubuf_info *ubuf, bool success)
|
static void vhost_zerocopy_callback(struct ubuf_info *ubuf, bool success)
|
||||||
|
|
Loading…
Reference in a new issue