aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTom Rix <[email protected]>2021-04-30 07:21:17 -0700
committerMark Brown <[email protected]>2021-05-10 17:06:06 +0100
commit58f01c7fc81baced84f237554d56847e17b5d730 (patch)
tree327087ed42d68cbbcb9a2a22fd545bfb204a0e87 /tools/perf/scripts/python
parent1d122dd3b168f55e2e29982cff80f1c15f66ef26 (diff)
ASoC: codecs: lpass-wsa-macro: handle unexpected input
Static analysis reports this problem lpass-wsa-macro.c:1732:6: warning: Array subscript is undefined if (wsa->ec_hq[ec_tx]) { ^~~~~~~~~~~~~~~~~ The happens because 'ec_tx' is never initialized and there is no default in switch statement that sets ec_tx. Add a default case that returns an error before the array is accessed. Signed-off-by: Tom Rix <[email protected]> Reviewed-by: Srinivas Kandagatla <[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