diff options
| author | Charles Keepax <ckeepax@opensource.cirrus.com> | 2021-09-14 15:13:44 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2021-09-15 13:12:30 +0100 |
| commit | c2f14cc2bcdd532f8a18450407ffc27bbbff2319 (patch) | |
| tree | cf7e1154bfc9aa9860d4c00ca7457731ee91ce32 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 6d66c5ccf5cb8af866fe2bb014098a3dd7bfa3cc (diff) | |
| download | linux-c2f14cc2bcdd532f8a18450407ffc27bbbff2319.tar.gz linux-c2f14cc2bcdd532f8a18450407ffc27bbbff2319.zip | |
ASoC: cs35l41: Fix use of an uninitialised variable
The loop checking PDN_DONE doesn't check the return value from
regmap_read, nor does it initialise val. This means if regmap_read fails
val will be checked for the PDN_DONE bit whilst being uninitialised.
Fix this up by switching to regmap_read_poll_timeout which tidies up the
code and avoids the uninitialised variable.
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210914141349.30218-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
