aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/intel/boards/sof_realtek_common.c
diff options
context:
space:
mode:
authorGravatar Simon Trimmer <simont@opensource.cirrus.com> 2024-04-22 11:32:11 +0100
committerGravatar Mark Brown <broonie@kernel.org> 2024-04-23 10:34:08 +0900
commitf2602fba4723e408380eb9a56e921d36a1ae21f8 (patch)
tree729defb1f9aff71317834f37c22830a0f0a5edad /sound/soc/intel/boards/sof_realtek_common.c
parentASoC: codecs: wsa881x: set clk_stop_mode1 flag (diff)
downloadlinux-f2602fba4723e408380eb9a56e921d36a1ae21f8.tar.gz
linux-f2602fba4723e408380eb9a56e921d36a1ae21f8.tar.bz2
linux-f2602fba4723e408380eb9a56e921d36a1ae21f8.zip
ASoC: cs35l56: Avoid static analysis warning of uninitialised variable
Static checkers complain that the silicon_uid variable passed by pointer to cs35l56_read_silicon_uid() could later be used uninitialised when calling cs_amp_get_efi_calibration_data(). cs35l56_read_silicon_uid() must have succeeded to call cs_amp_get_efi_calibration_data() and that would have populated the variable. However, initialise the value so we are not haunted by it forevermore. Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com> Fixes: e1830f66f6c6 ("ASoC: cs35l56: Add helper functions for amp calibration") Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://lore.kernel.org/r/20240422103211.236063-1-rf@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards/sof_realtek_common.c')
0 files changed, 0 insertions, 0 deletions