]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Fix unused variable warnings
authorTakashi Iwai <tiwai@suse.de>
Wed, 8 May 2019 08:50:37 +0000 (10:50 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 9 May 2019 02:18:57 +0000 (11:18 +0900)
commit6dd0d1f44b24bf02a4525d111ba284564138fbe1
treef417ff5e93b0106fd277c6508f7095b4175e166c
parent5865e29f0e6db147f268b02297cecedcfd4b4ee4
ASoC: SOF: Fix unused variable warnings

The recent fix for the build fix caused a couple of unused variable
compiler warnings when CONFIG_SND_SOC_SOF_NOCODEC isn't set:
  sound/soc/sof/core.c:263:6: warning: unused variable ‘ret’ [-Wunused-variable]
  sound/soc/sof/core.c:262:28: warning: unused variable ‘machine’ [-Wunused-variable]

Fix them by adding another ifdef.

Fixes: a8bb735a6b12 ("ASoC: SOF: core: fix undefined nocodec reference")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/core.c