From 9ff42e4baf03a84eca83b8c25e0165572259d253 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 23 Oct 2018 08:47:16 +0200 Subject: [PATCH] pcm_usb_stream: remove unused parameter in snd_pcm_us_read() Signed-off-by: Jaroslav Kysela --- usb_stream/pcm_usb_stream.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/usb_stream/pcm_usb_stream.c b/usb_stream/pcm_usb_stream.c index 5ca1c0f..6d08c37 100644 --- a/usb_stream/pcm_usb_stream.c +++ b/usb_stream/pcm_usb_stream.c @@ -297,7 +297,7 @@ static snd_pcm_sframes_t snd_pcm_us_write(snd_pcm_ioplug_t *io, return size; } -static int usb_stream_read(struct user_usb_stream *uus, void *to, unsigned bytes) +static int usb_stream_read(struct user_usb_stream *uus, void *to) { struct usb_stream *s = uus->s; int p = s->inpacket_split, l = 0; @@ -337,8 +337,7 @@ static snd_pcm_sframes_t snd_pcm_us_read(snd_pcm_ioplug_t *io, return -EINVAL; } if (us->uus->s->periods_done - us->periods_done == 1) { - red = usb_stream_read(us->uus, to, size * frame_size) / - frame_size; + red = usb_stream_read(us->uus, to) / frame_size; us->periods_done++; return red; } -- 2.47.1