commit | e6a33532affd14c12688c0e9b2e773e8b2550f3b | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Apr 20 13:17:02 2017 +0300 |
committer | Mark Brown <broonie@kernel.org> | Fri Apr 21 17:57:38 2017 +0100 |
tree | 09bde1aceb15dddd93144c2469f9d1d6b819cbaf | |
parent | 67e03ff3f32ffeb8f425d80627f3054b60bac0b7 [diff] |
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>