]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Skylake: Uninitialized variable in probe_codec()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 20 Apr 2017 10:17:02 +0000 (13:17 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 21 Apr 2017 16:57:38 +0000 (17:57 +0100)
commit9ec30d05bc8d243016ac2bf1676ba2d90baef77c
tree09bde1aceb15dddd93144c2469f9d1d6b819cbaf
parent1a131adb2e4db9a87c537e79f029230be59eb195
ASoC: Intel: Skylake: Uninitialized variable in probe_codec()

My static checker complains that if snd_hdac_bus_get_response() returns
-EIO then "res" is uninitialized.  Fix this by initializing it to -1 so
that the error is handled correctly.

Fixes: eab836a4a61f ("ASoC: Intel: Add Skylake HDA audio driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl.c