]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: alc5632: fix uninit var in alc5632_probe()
authorStephen Warren <swarren@nvidia.com>
Mon, 31 Mar 2014 18:25:24 +0000 (12:25 -0600)
committerMark Brown <broonie@linaro.org>
Tue, 1 Apr 2014 11:39:26 +0000 (12:39 +0100)
commitfc896c132ef7e1fc382637a793a0c8572ff97584
tree848f5ea2d0c535f5db8f67478196adac33d53c37
parent2b6413b794ba8ca089b57a55e21f1889d8794d4b
ASoC: alc5632: fix uninit var in alc5632_probe()

alc5632_probe() returns ret, yet it is not initialized or set anywhere.
This ends up causing the function to appear to fail, and audio not to
work on the Toshiba AC100, with my compiler at least.

This function used to set ret in all cases, but recent cleanup removed
that.

Fixes: 30d150459123 ("ASoC: codec: Simplify ASoC probe code.")
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/alc5632.c