diff options
| author | Pierre-Louis Bossart <[email protected]> | 2023-07-31 16:37:43 -0500 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-07-31 23:22:14 +0100 |
| commit | 55cb3dc271d81f1982c949a2ac483a6daf613b92 (patch) | |
| tree | 55e222148a189522ff04d4a4404a331697b66b22 /tools/perf/scripts/python | |
| parent | e44222c213678d6ef646d72cbb9a2eda52f6dc22 (diff) | |
ASoC: SOF: topology: simplify code to prevent static analysis warnings
make KCFLAGS='-fanalyzer' sound/soc/sof/intel/ reports a possible NULL
pointer dereference.
sound/soc/sof/topology.c:1136:21: error: dereference of NULL ‘w’
[CWE-476] [-Werror=analyzer-null-dereference]
1136 | strcmp(w->sname, rtd->dai_link->stream_name))
The code is rather confusing and can be simplified to make static
analysis happy. No functionality change.
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Rander Wang <[email protected]>
Reviewed-by: Daniel Baluta <[email protected]>
Reviewed-by: Yaochun Hung <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions