* [PATCH] ASoC: cs35l56: Initialise a variable to silence possible static analysis error
@ 2023-10-04 14:42 Richard Fitzgerald
2023-10-04 19:00 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Richard Fitzgerald @ 2023-10-04 14:42 UTC (permalink / raw)
To: broonie
Cc: alsa-devel, patches, linux-kernel, Simon Trimmer, Richard Fitzgerald
From: Simon Trimmer <simont@opensource.cirrus.com>
read_poll_timeout() is a macro and val will be populated before use,
however some static analysis tools treat it as a function and warn of
uninitialised variable usage.
Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
---
sound/soc/codecs/cs35l56-shared.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/cs35l56-shared.c b/sound/soc/codecs/cs35l56-shared.c
index 98b1e63360ae..01b6fa97b36b 100644
--- a/sound/soc/codecs/cs35l56-shared.c
+++ b/sound/soc/codecs/cs35l56-shared.c
@@ -242,7 +242,7 @@ EXPORT_SYMBOL_NS_GPL(cs35l56_firmware_shutdown, SND_SOC_CS35L56_SHARED);
int cs35l56_wait_for_firmware_boot(struct cs35l56_base *cs35l56_base)
{
unsigned int reg;
- unsigned int val;
+ unsigned int val = 0;
int read_ret, poll_ret;
if (cs35l56_base->rev < CS35L56_REVID_B0)
--
2.30.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: cs35l56: Initialise a variable to silence possible static analysis error
2023-10-04 14:42 [PATCH] ASoC: cs35l56: Initialise a variable to silence possible static analysis error Richard Fitzgerald
@ 2023-10-04 19:00 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2023-10-04 19:00 UTC (permalink / raw)
To: Richard Fitzgerald; +Cc: alsa-devel, patches, linux-kernel, Simon Trimmer
On Wed, 04 Oct 2023 15:42:03 +0100, Richard Fitzgerald wrote:
> read_poll_timeout() is a macro and val will be populated before use,
> however some static analysis tools treat it as a function and warn of
> uninitialised variable usage.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: cs35l56: Initialise a variable to silence possible static analysis error
commit: c98a0a83dccd19283da34a298876d26c7f06750f
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-04 19:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-04 14:42 [PATCH] ASoC: cs35l56: Initialise a variable to silence possible static analysis error Richard Fitzgerald
2023-10-04 19:00 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®