summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_utils.c
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2022-08-22 21:42:38 +0300
committerMark Brown <broonie@kernel.org>2022-08-31 14:13:03 +0300
commit3653a6a2a7c146f04940d572d2728c939b50cba1 (patch)
tree13b14896d538dc43f19b96c27e6a031160923b2d /sound/soc/fsl/fsl_utils.c
parentc9a9b4dbc18f4dc609d47b9ac19545b31fb21e3f (diff)
downloadlinux-3653a6a2a7c146f04940d572d2728c939b50cba1.tar.xz
ASoC: fsl: fsl-utils: remove useless assignment
cppcheck warning: sound/soc/fsl/fsl_utils.c:127:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] int ret = 0; ^ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Reviewed-by: Chao Song <chao.song@intel.com> Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com> Link: https://lore.kernel.org/r/20220822184239.169757-5-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/fsl_utils.c')
-rw-r--r--sound/soc/fsl/fsl_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_utils.c b/sound/soc/fsl/fsl_utils.c
index d0fc430f7033..a5ab27c2f711 100644
--- a/sound/soc/fsl/fsl_utils.c
+++ b/sound/soc/fsl/fsl_utils.c
@@ -124,7 +124,7 @@ void fsl_asoc_reparent_pll_clocks(struct device *dev, struct clk *clk,
{
struct clk *p, *pll = NULL, *npll = NULL;
bool reparent = false;
- int ret = 0;
+ int ret;
if (!clk || !pll8k_clk || !pll11k_clk)
return;