Home
last modified time | relevance | path

Searched hist:"38 cc0334baabc5baf08a1db753de521e016c0432" (Results 1 – 1 of 1) sorted by relevance

/linux/sound/soc/codecs/
H A Dpeb2466.cdiff 38cc0334baabc5baf08a1db753de521e016c0432 Wed Sep 11 13:54:50 CEST 2024 Su Hui <suhui@nfschina.com> ASoC: codecs: avoid possible garbage value in peb2466_reg_read()

Clang static checker (scan-build) warning:
sound/soc/codecs/peb2466.c:232:8:
Assigned value is garbage or undefined [core.uninitialized.Assign]
232 | *val = tmp;
| ^ ~~~

When peb2466_read_byte() fails, 'tmp' will have a garbage value.
Add a judgemnet to avoid this problem.

Fixes: 227f609c7c0e ("ASoC: codecs: Add support for the Infineon PEB2466 codec")
Signed-off-by: Su Hui <suhui@nfschina.com>
Link: https://patch.msgid.link/20240911115448.277828-1-suhui@nfschina.com
Signed-off-by: Mark Brown <broonie@kernel.org>