]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: fix unused-variable warning in probe_codec
authorGaosheng Cui <cuigaosheng1@huawei.com>
Mon, 22 Aug 2022 03:51:33 +0000 (11:51 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 13 Sep 2022 16:12:08 +0000 (17:12 +0100)
commit0b8d345945ac49fd9a3fbbcd7056bc32a476e737
tree0966be0b37eb330d5866b70475a42df9ac7fdc5e
parentb0724c2c18c3c4bc4aced07113989940e0960ddd
ASoC: Intel: fix unused-variable warning in probe_codec

In configurations with CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC=n,
gcc warns about an unused variable:

sound/soc/intel/skylake/skl.c: In function ‘probe_codec’:
sound/soc/intel/skylake/skl.c:729:18: error: unused variable ‘skl’ [-Werror=unused-variable]
  struct skl_dev *skl = bus_to_skl(bus);
                  ^~~
cc1: all warnings being treated as errors

Fixes: cad34abab00f6 ("ASoC: Intel: Drop hdac_ext usage for codec device creation")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Acked-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20220822035133.2147381-1-cuigaosheng1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl.c