summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2020-09-18 22:05:46 +0300
committerMark Brown <broonie@kernel.org>2020-09-21 22:40:54 +0300
commitcadab0aefcbadf488b16caf2770430e69f4d7839 (patch)
treeabb831046398c5f9f9979e62e2167eb07a873dd2 /tools/perf/scripts/python/export-to-sqlite.py
parent4b8ab8a7761fe2ba1c4e741703a848cb8f390f79 (diff)
downloadlinux-cadab0aefcbadf488b16caf2770430e69f4d7839.tar.xz
ASoC: tas2770: Fix error handling with update_bits
snd_soc_update_bits returns a 1 when the bit was successfully updated, returns a 0 is no update was needed and a negative if the call failed. The code is currently failing the case of a successful update by just checking for a non-zero number. Modify these checks and return the error code only if there is a negative. Fixes: 1a476abc723e6 ("tas2770: add tas2770 smart PA kernel driver") Signed-off-by: Dan Murphy <dmurphy@ti.com> Link: https://lore.kernel.org/r/20200918190548.12598-7-dmurphy@ti.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions