Skip to content

Commit

Permalink
ALSA: snd-usb: remove unused variable in init_pitch_v2()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Takashi Iwai committed Oct 21, 2012
1 parent 4d4ca1e commit 950f40f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sound/usb/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,8 @@ static int init_pitch_v2(struct snd_usb_audio *chip, int iface,
{
struct usb_device *dev = chip->dev;
unsigned char data[1];
unsigned int ep;
int err;

ep = get_endpoint(alts, 0)->bEndpointAddress;

data[0] = 1;
if ((err = snd_usb_ctl_msg(dev, usb_sndctrlpipe(dev, 0), UAC2_CS_CUR,
USB_TYPE_CLASS | USB_RECIP_ENDPOINT | USB_DIR_OUT,
Expand Down

0 comments on commit 950f40f

Please sign in to comment.