diff options
| author | Kasumov Ruslan <[email protected]> | 2023-03-15 16:51:14 +0300 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2023-03-18 15:44:30 +0000 |
| commit | 30da26eacea6867353f7aa2c18f37a0a0fa82af4 (patch) | |
| tree | 9a2a9b7ea730cc9aa63b0470663d77d5f0d4c0bb /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
| parent | 225dc61e2fa8def14426e2a34e926a79fae6118b (diff) | |
iio: adc: qcom-pm8xxx-xoadc: Remove useless condition in pm8xxx_xoadc_parse_channel()
The left side of the loop condition never becomes false. hwchan cannot be
NULL, because it points to elements of the hw_channels array that takes
one of 4 predefined values: pm8018_xoadc_channels, pm8038_xoadc_channels,
pm8058_xoadc_channels, pm8921_xoadc_channels.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Reviewed-by: Andi Shyti <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Kasumov Ruslan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions