]> Git Repo - linux.git/commit - sound/soc/intel/skylake/skl.c
ASoC: Intel: Skylake: Uninitialized variable in probe_codec()
authorDan Carpenter <[email protected]>
Thu, 20 Apr 2017 10:17:02 +0000 (13:17 +0300)
committerMark Brown <[email protected]>
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 <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/intel/skylake/skl.c
This page took 0.047214 seconds and 4 git commands to generate.