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:
33eaffe
)
ASoC: rt5651: remove useless assignment
author
Pierre-Louis Bossart
<pierre-louis.bossart@linux.intel.com>
Tue, 2 Mar 2021 21:25:15 +0000
(15:25 -0600)
committer
Mark Brown
<broonie@kernel.org>
Wed, 10 Mar 2021 13:10:04 +0000
(13:10 +0000)
cppcheck warning:
sound/soc/codecs/rt5651.c:1786:13: style: Variable 'report' is
assigned a value that is never used. [unreadVariable]
int report = 0;
^
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link:
https://lore.kernel.org/r/20210302212527.55158-13-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5651.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/rt5651.c
b/sound/soc/codecs/rt5651.c
index 49fab9db5917b1e416883cb50963dbaa6c9bc6f2..fc0c83b73f099e60a53d3e710623ed85791b44d0 100644
(file)
--- a/
sound/soc/codecs/rt5651.c
+++ b/
sound/soc/codecs/rt5651.c
@@
-1783,7
+1783,7
@@
static void rt5651_jack_detect_work(struct work_struct *work)
struct rt5651_priv *rt5651 =
container_of(work, struct rt5651_priv, jack_detect_work);
struct snd_soc_component *component = rt5651->component;
- int report
= 0
;
+ int report;
if (!rt5651_jack_inserted(component)) {
/* Jack removed, or spurious IRQ? */