[alsa-devel] [PATCH RFC 1/9] ALSA: usb-audio: remove unused parameter from sync_ep_set_params
Eldad Zack
eldad at fogrefinery.com
Sun Aug 18 22:22:35 CEST 2013
Since the format is not actually used in sync_ep_set_params(),
there is no need to pass it down.
Signed-off-by: Eldad Zack <eldad at fogrefinery.com>
---
sound/usb/endpoint.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c
index 659950e..13e3685 100644
--- a/sound/usb/endpoint.c
+++ b/sound/usb/endpoint.c
@@ -700,8 +700,7 @@ out_of_memory:
/*
* configure a sync endpoint
*/
-static int sync_ep_set_params(struct snd_usb_endpoint *ep,
- struct audioformat *fmt)
+static int sync_ep_set_params(struct snd_usb_endpoint *ep)
{
int i;
@@ -793,7 +792,7 @@ int snd_usb_endpoint_set_params(struct snd_usb_endpoint *ep,
period_bytes, fmt, sync_ep);
break;
case SND_USB_ENDPOINT_TYPE_SYNC:
- err = sync_ep_set_params(ep, fmt);
+ err = sync_ep_set_params(ep);
break;
default:
err = -EINVAL;
--
1.8.1.5
More information about the Alsa-devel
mailing list