summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2018-07-20 08:15:13 +0800
committerDavid S. Miller <davem@davemloft.net>2018-07-22 09:43:30 -0700
commit652e4f3e82a144500f17af772503b6e216441f9f (patch)
treea01a0266891cc8ec7ce64136701430c4713dd6e4 /drivers
parent0ae0d60a379c11d6f3b11d9b9e8dbdd1fc683a1a (diff)
downloadlinux-652e4f3e82a144500f17af772503b6e216441f9f.tar.bz2
vhost_net: drop unnecessary parameter
Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/vhost/net.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c
index b2240361f1a1..1a8175ae2941 100644
--- a/drivers/vhost/net.c
+++ b/drivers/vhost/net.c
@@ -430,7 +430,6 @@ static int vhost_net_enable_vq(struct vhost_net *n,
static int vhost_net_tx_get_vq_desc(struct vhost_net *net,
struct vhost_virtqueue *vq,
- struct iovec iov[], unsigned int iov_size,
unsigned int *out_num, unsigned int *in_num,
bool *busyloop_intr)
{
@@ -512,9 +511,8 @@ static void handle_tx(struct vhost_net *net)
vhost_zerocopy_signal_used(net, vq);
busyloop_intr = false;
- head = vhost_net_tx_get_vq_desc(net, vq, vq->iov,
- ARRAY_SIZE(vq->iov),
- &out, &in, &busyloop_intr);
+ head = vhost_net_tx_get_vq_desc(net, vq, &out, &in,
+ &busyloop_intr);
/* On error, stop handling until the next kick. */
if (unlikely(head < 0))
break;