ALSA: snd-usb: remove unused variable in init_pitch_v2()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 18 Oct 2012 14:46:23 +0000 (22:46 +0800)
committerTakashi Iwai <tiwai@suse.de>
Sun, 21 Oct 2012 08:43:27 +0000 (10:43 +0200)
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>
sound/usb/pcm.c

index 55e19e1b80ec4eeb282c91cea482ef7434cf8dce..f77b87ad02566e65d2ea76248351923f9a24fdff 100644 (file)
@@ -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,