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)
commite6a33532affd14c12688c0e9b2e773e8b2550f3b
tree09bde1aceb15dddd93144c2469f9d1d6b819cbaf
parent67e03ff3f32ffeb8f425d80627f3054b60bac0b7
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: d8c2dab8381d ("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