aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorWaqar Hameed <waqar.hameed@axis.com>2023-07-13 12:47:31 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-07-20 19:21:30 +0100
commit4dc8f99dab753955348414dc854259c57120bf1b (patch)
tree24695833fdff64fdc4a5c5eda34bd88bd474e6a9 /tools/perf/scripts/python/export-to-postgresql.py
parentdt-bindings: iio: adc: qcom,spmi-adc7: use predefined channel ids (diff)
downloadlinux-4dc8f99dab753955348414dc854259c57120bf1b.tar.gz
linux-4dc8f99dab753955348414dc854259c57120bf1b.zip
iio: Make return value check for set_trigger_state() consistent
In `iio_trigger_detach_poll_func()` the return value from `trig->ops->set_trigger_state(trig, false)` is checked with `if (ret)`. However, in `iio_trigger_attach_poll_func()` it is checked with `if (ret < 0)`. Resolve this mismatch by only checking for `if (ret)` in both places. Signed-off-by: Waqar Hameed <waqar.hameed@axis.com> Link: https://lore.kernel.org/r/pndv8eojdey.fsf@axis.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions