aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-07-30 07:16:51 +0000
committerJonathan Cameron <[email protected]>2021-07-31 13:46:05 +0000
commit5afc1540f13804a31bb704b763308e17688369c5 (patch)
tree1478d90ac789e0acf56bbc0f5b97542e5f765feb /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentiio: humidity: hdc100x: Add margin to the conversion time (diff)
downloadkernel-5afc1540f13804a31bb704b763308e17688369c5.tar.gz
kernel-5afc1540f13804a31bb704b763308e17688369c5.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions