OSDN Git Service

ASoC: da7219: Fix a compile warning at CONFIG_COMMON_CLK=n
authorTakashi Iwai <tiwai@suse.de>
Mon, 6 May 2019 15:02:22 +0000 (17:02 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 7 May 2019 02:23:27 +0000 (11:23 +0900)
A trivial fix for the randconfig build error:
  sound/soc/codecs/da7219.c:2366:6: warning: unused variable ā€˜iā€™ [-Wunused-variable]

Fixes: d90ba6c8b53e ("ASoC: da7219: Expose BCLK and WCLK control through CCF")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7219.c

index 206d01c..43c03e7 100644 (file)
@@ -2357,7 +2357,9 @@ err_disable_reg:
 static void da7219_remove(struct snd_soc_component *component)
 {
        struct da7219_priv *da7219 = snd_soc_component_get_drvdata(component);
+#ifdef CONFIG_COMMON_CLK
        int i;
+#endif
 
        da7219_aad_exit(component);