projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e92a309
)
ASoC: fsl: fsl_asrc: remove useless assignment
author
Pierre-Louis Bossart
<pierre-louis.bossart@linux.intel.com>
Fri, 19 Feb 2021 23:29:29 +0000
(17:29 -0600)
committer
Mark Brown
<broonie@kernel.org>
Wed, 10 Mar 2021 13:06:36 +0000
(13:06 +0000)
cppcheck warning:
sound/soc/fsl/fsl_asrc.c:613:8: style: Variable 'i' is assigned a
value that is never used. [unreadVariable]
int i = 0, j = 0;
^
The same issue occurs for the 'j' variable.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link:
https://lore.kernel.org/r/20210219232937.6440-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_asrc.c
patch
|
blob
|
history
diff --git
a/sound/soc/fsl/fsl_asrc.c
b/sound/soc/fsl/fsl_asrc.c
index c325c984d165939263e42a9d606ee1adcef54c5f..63d236ef5c4d42f5e7e3ed06288df6e75b7f1d26 100644
(file)
--- a/
sound/soc/fsl/fsl_asrc.c
+++ b/
sound/soc/fsl/fsl_asrc.c
@@
-610,7
+610,7
@@
static void fsl_asrc_select_clk(struct fsl_asrc_priv *asrc_priv,
struct asrc_config *config = pair_priv->config;
int rate[2], select_clk[2]; /* Array size 2 means IN and OUT */
int clk_rate, clk_index;
- int i
= 0, j = 0
;
+ int i
, j
;
rate[IN] = in_rate;
rate[OUT] = out_rate;