X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=sound%2Fusb%2Fclock.c;h=0afae839d2953d4cc9f150c634d5501fadf403a1;hb=be22db77dc50be6d9cf2b20ab689706c9031c054;hp=772478c725c2e6f31ebefdf88a0ae58517cb2ba6;hpb=bdaedca74d6293b6ac643a8ebe8231b52bf1171b;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/sound/usb/clock.c b/sound/usb/clock.c index 772478c7..0afae83 100644 --- a/sound/usb/clock.c +++ b/sound/usb/clock.c @@ -290,6 +290,7 @@ static int __uac_clock_find_source(struct snd_usb_audio *chip, pins = GET_VAL(selector, proto, bNrInPins); clock_id = GET_VAL(selector, proto, bClockID); sources = GET_VAL(selector, proto, baCSourceID); + cur = 0; if (pins == 1) { ret = 1; @@ -314,7 +315,6 @@ static int __uac_clock_find_source(struct snd_usb_audio *chip, if (!chip->autoclock) return -EINVAL; - ret = 0; goto find_others; }