diff options
| author | Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> | 2025-12-03 15:06:12 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-12-18 14:00:17 +0100 |
| commit | 5b5d070700b9e5485822321c13bf08277a6b8410 (patch) | |
| tree | 63ba5721b3709b2e7934af063ff71a1c2cdf9fde /samples/rust | |
| parent | bca11de0a277b8baeb7d006f93b543c907b6e782 (diff) | |
| download | linux-5b5d070700b9e5485822321c13bf08277a6b8410.tar.gz linux-5b5d070700b9e5485822321c13bf08277a6b8410.tar.bz2 linux-5b5d070700b9e5485822321c13bf08277a6b8410.zip | |
ASoC: codecs: nau8325: Silence uninitialized variables warnings
commit 2c7e5e17c05f1d5e10e63e1baff2b362cd08dcd6 upstream.
clang W=1 builds warn:
nau8325.c:430:13: error: variable 'n2_max' is uninitialized when used here [-Werror,-Wuninitialized]
which are false positive, because the variables will be always
initialized when used (guarded by mclk_max!=0 check). However
initializing them upfront makes the code more obvious and easier, plus
it silences the warning.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20251203140611.87191-2-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/rust')
0 files changed, 0 insertions, 0 deletions
