Commit 93721039903eab4a3d406e6fb095e2598093bc9c
Committed by
Takashi Iwai
1 parent
d2724de187
Exists in
master
and in
16 other branches
ALSA: usb-audio: remove unused parameter from sync_ep_set_params
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>
Showing 1 changed file with 2 additions and 3 deletions Side-by-side Diff
sound/usb/endpoint.c
... | ... | @@ -714,8 +714,7 @@ |
714 | 714 | /* |
715 | 715 | * configure a sync endpoint |
716 | 716 | */ |
717 | -static int sync_ep_set_params(struct snd_usb_endpoint *ep, | |
718 | - struct audioformat *fmt) | |
717 | +static int sync_ep_set_params(struct snd_usb_endpoint *ep) | |
719 | 718 | { |
720 | 719 | int i; |
721 | 720 | |
... | ... | @@ -812,7 +811,7 @@ |
812 | 811 | buffer_periods, fmt, sync_ep); |
813 | 812 | break; |
814 | 813 | case SND_USB_ENDPOINT_TYPE_SYNC: |
815 | - err = sync_ep_set_params(ep, fmt); | |
814 | + err = sync_ep_set_params(ep); | |
816 | 815 | break; |
817 | 816 | default: |
818 | 817 | err = -EINVAL; |