Messages in this thread Patch in this message | | | From | Pierre-Louis Bossart <> | Subject | [PATCH 01/11] ASoC: codecs: ak4458: fix 'set but not used' warning | Date | Wed, 1 Jul 2020 13:24:12 -0500 |
| |
fix warning with W=1
sound/soc/codecs/ak4458.c:408:16: warning: variable 'ret' set but not used [-Wunused-but-set-variable] 408 | int nfs, ndt, ret, reg; | ^~~
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> --- sound/soc/codecs/ak4458.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/ak4458.c b/sound/soc/codecs/ak4458.c index f180cb5dfe4f..e8b4048fbbe4 100644 --- a/sound/soc/codecs/ak4458.c +++ b/sound/soc/codecs/ak4458.c @@ -427,7 +427,7 @@ static int ak4458_set_dai_mute(struct snd_soc_dai *dai, int mute) mdelay(ndt); } - return 0; + return ret; } static int ak4458_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, -- 2.25.1
| |