ASoC: codecs: wcd938x: fix returnvar.cocci warnings
authorkernel test robot <lkp@intel.com>
Tue, 29 Jun 2021 13:29:09 +0000 (21:29 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 11 Jul 2021 22:48:36 +0000 (23:48 +0100)
commit4d0b79ec9eb81b227c8ae211b7f159bd7194d9ae
tree7123ec19bd4658b557f0f3f27d4d2d89d6fbdbc8
parent6c5c659dfe3f02e08054a6c20019e3886618b512
ASoC: codecs: wcd938x: fix returnvar.cocci warnings

sound/soc/codecs/wcd938x.c:1628:5-8: Unneeded variable: "ret". Return "0" on line 1656
sound/soc/codecs/wcd938x.c:1871:5-8: Unneeded variable: "ret". Return "0" on line 1907

 Remove unneeded variable used to store return value.

Generated by: scripts/coccinelle/misc/returnvar.cocci

Fixes: 045442228868 ("ASoC: codecs: wcd938x: add audio routing and Kconfig")
CC: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Acked-by: Souptick Joarder <jrdr.linux@gmail.com>
Link: https://lore.kernel.org/r/20210629132909.GA7935@233d919f385f
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd938x.c