diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-12-02 05:33:08 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-01-10 12:35:47 +0200 |
commit | b642435333b23ab01d526bd854d118704434fc88 (patch) | |
tree | 7417f3ccd927df9e8efc93aa371c5a25ea079a1b /drivers/usb/gadget/f_uac2.c | |
parent | 2b5080026cc4c29e68642fea2b7e2cc77b2796f3 (diff) | |
download | op-kernel-dev-b642435333b23ab01d526bd854d118704434fc88.zip op-kernel-dev-b642435333b23ab01d526bd854d118704434fc88.tar.gz |
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/f_uac2.c')
-rw-r--r-- | drivers/usb/gadget/f_uac2.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/usb/gadget/f_uac2.c b/drivers/usb/gadget/f_uac2.c index d7da258..07fde05 100644 --- a/drivers/usb/gadget/f_uac2.c +++ b/drivers/usb/gadget/f_uac2.c @@ -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); |