projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: usb-audio: Fix uninitialized variable at __uac_clock_find_source()
[platform/kernel/linux-rpi.git]
/
sound
/
usb
/
clock.c
diff --git
a/sound/usb/clock.c
b/sound/usb/clock.c
index
772478c
..
0afae83
100644
(file)
--- 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;
}