diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-07-30 08:16:51 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-07-31 14:46:05 +0100 |
commit | 5afc1540f13804a31bb704b763308e17688369c5 (patch) | |
tree | 1478d90ac789e0acf56bbc0f5b97542e5f765feb /tools/perf/scripts/python/libxed.py | |
parent | 84edec86f449adea9ee0b4912a79ab8d9d65abb7 (diff) |
iio: adc: Fix incorrect exit of for-loop
Currently the for-loop that scans for the optimial adc_period iterates
through all the possible adc_period levels because the exit logic in
the loop is inverted. I believe the comparison should be swapped and
the continue replaced with a break to exit the loop at the correct
point.
Addresses-Coverity: ("Continue has no effect")
Fixes: e08e19c331fb ("iio:adc: add iio driver for Palmas (twl6035/7) gpadc")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210730071651.17394-1-colin.king@canonical.com
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions