diff options
| author | Svyatoslav Ryhel <clamor95@gmail.com> | 2026-04-16 14:14:42 +0300 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-04-28 16:36:09 +0100 |
| commit | bb21ee31f5753a7972148798fd7dfb841dd33bdb (patch) | |
| tree | 41f9dcfac1c82c8466ed05fcbfc4b35ddad532c9 /tools/perf/scripts | |
| parent | 761e8b489e6cf166c574034b70637f8a7eadd0ee (diff) | |
iio: Fix iio_multiply_value use in iio_read_channel_processed_scale
The function iio_multiply_value returns IIO_VAL_INT (1) on success or a
negative error number on failure, while iio_read_channel_processed_scale
should return an error code or 0. This creates a situation where the
expected result is treated as an error. Fix this by checking the
iio_multiply_value result separately, instead of passing it as a return
value.
Fixes: 05f958d003c9 ("iio: Improve iio_read_channel_processed_scale() precision")
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
