mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
ASoC: SOF: Intel: hda-codec: move variable used conditionally
Cppcheck reports the following warning: sound/soc/sof/intel/hda-codec.c:122:20: style: Unused variable: codec [unusedVariable] struct hda_codec *codec; ^ Move declaration inside a conditionally-compiled block. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200813175839.59422-3-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
11ec0edc64
commit
2e3e0bc378
1 changed files with 1 additions and 1 deletions
|
@ -116,10 +116,10 @@ static int hda_codec_probe(struct snd_sof_dev *sdev, int address,
|
||||||
{
|
{
|
||||||
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
|
#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC)
|
||||||
struct hdac_hda_priv *hda_priv;
|
struct hdac_hda_priv *hda_priv;
|
||||||
|
struct hda_codec *codec;
|
||||||
#endif
|
#endif
|
||||||
struct hda_bus *hbus = sof_to_hbus(sdev);
|
struct hda_bus *hbus = sof_to_hbus(sdev);
|
||||||
struct hdac_device *hdev;
|
struct hdac_device *hdev;
|
||||||
struct hda_codec *codec;
|
|
||||||
u32 hda_cmd = (address << 28) | (AC_NODE_ROOT << 20) |
|
u32 hda_cmd = (address << 28) | (AC_NODE_ROOT << 20) |
|
||||||
(AC_VERB_PARAMETERS << 8) | AC_PAR_VENDOR_ID;
|
(AC_VERB_PARAMETERS << 8) | AC_PAR_VENDOR_ID;
|
||||||
u32 resp = -1;
|
u32 resp = -1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue