]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: hda_dsp_common: use static function in conditional block
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 23 Sep 2020 07:29:39 +0000 (10:29 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 23 Sep 2020 17:47:59 +0000 (18:47 +0100)
commit94d7992093018fc0c20e5d1bf2e96fdc81f5546b
tree45e370117fbfb4b2c23cc912400c3591e184167a
parentcca9be00470e054db4d5c2c36aacf40d0999c6f6
ASoC: Intel: hda_dsp_common: use static function in conditional block

cppcheck reports the following warning:

sound/soc/intel/boards/hda_dsp_common.c:17:0: style: The function
'hda_dsp_hdmi_pcm_handle' is never used. [unusedFunction]

Fix by moving to static inside compilation block.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Jaska Uimonen <jaska.uimonen@intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200923072939.3100468-1-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/hda_dsp_common.c
sound/soc/intel/boards/hda_dsp_common.h