diff options
author | Nathan Chancellor <nathan@kernel.org> | 2023-10-11 23:21:51 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-10-12 15:04:55 +0300 |
commit | 41cb1126bed152f7679417834ad7ea39f2252dfb (patch) | |
tree | 7a3ed5b1dfdce29272bf0114bd0f4a22e076d357 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 59825951707eccf92782e109c04772d34fc07eb6 (diff) | |
download | linux-41cb1126bed152f7679417834ad7ea39f2252dfb.tar.xz |
ASoC: tegra: Fix -Wuninitialized in tegra210_amx_platform_probe()
Clang warns (or errors with CONFIG_WERROR=y):
sound/soc/tegra/tegra210_amx.c:553:10: error: variable 'soc_data' is uninitialized when used here [-Werror,-Wuninitialized]
553 | soc_data->regmap_conf);
| ^~~~~~~~
A refactoring removed the initialization of this variable but its use
was not updated. Use the soc_data value in the amx variable to resolve
the warning and remove the soc_data variable, as it is now entirely
unused.
Closes: https://github.com/ClangBuiltLinux/linux/issues/1943
Fixes: 9958d85968ed ("ASoC: Use device_get_match_data()")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20231011-asoc-tegra-fix-uninit-soc_data-v1-1-0ef0ab44cf48@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions