projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e92a309
)
ASoC: sh: dma-sh7760: remove unused variable
author
Pierre-Louis Bossart
<pierre-louis.bossart@linux.intel.com>
Fri, 19 Feb 2021 23:16:28 +0000
(17:16 -0600)
committer
Mark Brown
<broonie@kernel.org>
Wed, 10 Mar 2021 13:06:59 +0000
(13:06 +0000)
cppcheck warning:
sound/soc/sh/dma-sh7760.c:180:6: style: Unused variable: ret
[unusedVariable]
int ret;
^
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link:
https://lore.kernel.org/r/20210219231635.5749-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/dma-sh7760.c
patch
|
blob
|
history
diff --git
a/sound/soc/sh/dma-sh7760.c
b/sound/soc/sh/dma-sh7760.c
index b70068dd5a06ffa107f82130b11742882119e979..121e48f984c50cabd061dfd86bb25b7dd0bfb0b9 100644
(file)
--- a/
sound/soc/sh/dma-sh7760.c
+++ b/
sound/soc/sh/dma-sh7760.c
@@
-177,7
+177,6
@@
static int camelot_hw_params(struct snd_soc_component *component,
struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
struct camelot_pcm *cam = &cam_pcm_data[asoc_rtd_to_cpu(rtd, 0)->id];
int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1;
- int ret;
if (recv) {
cam->rx_period_size = params_period_bytes(hw_params);