diff options
| author | Pierre-Louis Bossart <[email protected]> | 2021-04-26 16:47:01 -0500 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2021-05-10 13:05:30 +0100 |
| commit | cccc16dc175eafa2dec98002dde35d19ace0a696 (patch) | |
| tree | c68e3a5c0a0fea32d9e892abfa3f00f7e4900151 | |
| parent | 16255d4155da9ec8fcafcd7460a334e2e52f934e (diff) | |
ASoC: fsl: imx-pcm-rpmsg: remove useless initialization
cppcheck warning:
assigned a value that is never used. [unreadVariable]
int written_num = 0;
^
sound/soc/fsl/imx-pcm-rpmsg.c:547:18: style: Variable 'written_num' is
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
| -rw-r--r-- | sound/soc/fsl/imx-pcm-rpmsg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-pcm-rpmsg.c b/sound/soc/fsl/imx-pcm-rpmsg.c index 875c0d6df339..6d883a10efd1 100644 --- a/sound/soc/fsl/imx-pcm-rpmsg.c +++ b/sound/soc/fsl/imx-pcm-rpmsg.c @@ -544,7 +544,7 @@ static int imx_rpmsg_pcm_ack(struct snd_soc_component *component, struct rpmsg_msg *msg; unsigned long flags; int buffer_tail = 0; - int written_num = 0; + int written_num; if (!rpmsg->force_lpa) return 0; |