Skip to content

Commit

Permalink
ALSA: usb-audio: remove unused parameter from sync_ep_set_params
Browse files Browse the repository at this point in the history
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@fogrefinery.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
eldad authored and tiwai committed Oct 7, 2013
1 parent d2724de commit 9372103
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sound/usb/endpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,7 @@ static int data_ep_set_params(struct snd_usb_endpoint *ep,
/*
* 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;

Expand Down Expand Up @@ -812,7 +811,7 @@ int snd_usb_endpoint_set_params(struct snd_usb_endpoint *ep,
buffer_periods, 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;
Expand Down

0 comments on commit 9372103

Please sign in to comment.