diff options
author | Herve Codina <[email protected]> | 2023-06-23 10:58:20 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-07-09 22:48:10 +0100 |
commit | f75c544d74133278b004195220f540d8ab953e14 (patch) | |
tree | 74f383c19c898fb859c794ab599f7a166778cf9c /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | b5f3484117b86cb128f500ff2d730c3cfcb9ddfc (diff) |
iio: inkern: Check error explicitly in iio_channel_read_max()
The current implementation returns the error code as part of the
default switch case.
This can lead to returning an incorrect positive value in case of
iio_avail_type enum entries evolution.
In order to avoid this case, be more strict in error checking.
Signed-off-by: Herve Codina <[email protected]>
Acked-by: Jonathan Cameron <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Reviewed-by: Christophe Leroy <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions