diff mbox series

[4/4] ASoC: fsl: imx-pcm-rpmsg: remove useless initialization

Message ID 20210426214701.235106-5-pierre-louis.bossart@linux.intel.com (mailing list archive)
State Accepted
Commit cccc16dc175eafa2dec98002dde35d19ace0a696
Headers show
Series ASoC: cppcheck fixes of the week | expand

Commit Message

Pierre-Louis Bossart April 26, 2021, 9:47 p.m. UTC
cppcheck warning:

sound/soc/fsl/imx-pcm-rpmsg.c:547:18: style: Variable 'written_num' is
assigned a value that is never used. [unreadVariable]
 int written_num = 0;
                 ^
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
---
 sound/soc/fsl/imx-pcm-rpmsg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;