lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20220223071959.13539-9-Vijendar.Mukunda@amd.com> Date: Wed, 23 Feb 2022 12:49:38 +0530 From: Vijendar Mukunda <Vijendar.Mukunda@....com> To: <broonie@...nel.org>, <alsa-devel@...a-project.org> CC: <Alexander.Deucher@....com>, <Sunil-kumar.Dommati@....com>, <krisman@...labora.com>, <wtli@...oton.com>, Vijendar Mukunda <Vijendar.Mukunda@....com>, Liam Girdwood <lgirdwood@...il.com>, "Jaroslav Kysela" <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>, open list <linux-kernel@...r.kernel.org> Subject: [PATCH 9/9] ASoC: amd: vangogh: fix uninitialized symbol warning in machine driver Fixed below smatch static checker warning. sound/soc/amd/vangogh/acp5x-mach.c:190 acp5x_cs35l41_hw_params() error: uninitialized symbol 'ret'. Reported-by: Dan Carpenter <dan.carpenter@...cle.com> Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@....com> --- sound/soc/amd/vangogh/acp5x-mach.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/amd/vangogh/acp5x-mach.c b/sound/soc/amd/vangogh/acp5x-mach.c index c574e80907f0..5ae3de76283e 100644 --- a/sound/soc/amd/vangogh/acp5x-mach.c +++ b/sound/soc/amd/vangogh/acp5x-mach.c @@ -177,6 +177,7 @@ static int acp5x_cs35l41_hw_params(struct snd_pcm_substream *substream, unsigned int num_codecs = rtd->num_codecs; unsigned int bclk_val; + ret = 0; for (i = 0; i < num_codecs; i++) { codec_dai = asoc_rtd_to_codec(rtd, i); if ((strcmp(codec_dai->name, "spi-VLV1776:00") == 0) || -- 2.17.1
Powered by blists - more mailing lists