Commit b6424353 authored by Wei Yongjun's avatar Wei Yongjun Committed by Felipe Balbi
Browse files

usb: gadget: remove unused variable in uac2_pcm_trigger()



The variable ep is initialized but never used
otherwise, so remove the unused variable.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 2b508002
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -263,16 +263,12 @@ uac2_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
	struct audio_dev *agdev = uac2_to_agdev(uac2);
	struct uac2_rtd_params *prm;
	unsigned long flags;
	struct usb_ep *ep;
	int err = 0;

	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
		ep = agdev->in_ep;
	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
		prm = &uac2->p_prm;
	} else {
		ep = agdev->out_ep;
	else
		prm = &uac2->c_prm;
	}

	spin_lock_irqsave(&prm->lock, flags);