aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2020-01-17 13:33:05 +0000
committerAlex Deucher <[email protected]>2020-01-27 21:46:45 +0000
commit54f73df4cab18734b71a4325feb4749d334dc877 (patch)
tree38b98fd611aeb4804024de34dd61956bfa17ebd4 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
parentdrm/amdgpu: enable GPU reset by default on renoir (diff)
downloadkernel-54f73df4cab18734b71a4325feb4749d334dc877.tar.gz
kernel-54f73df4cab18734b71a4325feb4749d334dc877.zip
drm/amd/display: fix for-loop with incorrectly sized loop counter (v2)
A for-loop is iterating from 0 up to 1000 however the loop variable count is a u8 and hence not large enough. Fix this by making count an int. Also remove the redundant initialization of count since this is never used and add { } on the loop statement make the loop block clearer. v2: drop useless else (Walter Harms) Addresses-Coverity: ("Operands don't affect result") Fixes: ed581a0ace44 ("drm/amd/display: wait for update when setting dpg test pattern") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
0 files changed, 0 insertions, 0 deletions