aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-10-18 10:46:23 -0400
committerTakashi Iwai <tiwai@suse.de>2012-10-21 04:43:27 -0400
commit950f40fdd4732e5161e244812cbd9557c4e1d86c (patch)
tree8f2f3f6cda8f58f716ae73226b026ee985fffb98 /sound/usb
parent4d4ca1e839684351ff6dfa582912304e0875cad4 (diff)
ALSA: snd-usb: remove unused variable in init_pitch_v2()
The variable ep is initialized but never used otherwise, so remove the unused variable. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/pcm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
index 55e19e1b80ec..f77b87ad0256 100644
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -171,11 +171,8 @@ static int init_pitch_v2(struct snd_usb_audio *chip, int iface,
171{ 171{
172 struct usb_device *dev = chip->dev; 172 struct usb_device *dev = chip->dev;
173 unsigned char data[1]; 173 unsigned char data[1];
174 unsigned int ep;
175 int err; 174 int err;
176 175
177 ep = get_endpoint(alts, 0)->bEndpointAddress;
178
179 data[0] = 1; 176 data[0] = 1;
180 if ((err = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0), UAC2_CS_CUR, 177 if ((err = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0), UAC2_CS_CUR,
181 USB_TYPE_CLASS | USB_RECIP_ENDPOINT | USB_DIR_OUT, 178 USB_TYPE_CLASS | USB_RECIP_ENDPOINT | USB_DIR_OUT,