aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2017-04-21 10:51:43 +0000
committerCK Hu <[email protected]>2017-05-22 05:49:11 +0000
commitf752413e26bdc9f73a8a12e280770646555c82fc (patch)
tree42376cc73937b9b6204a0d81fe42ece0bd48da54 /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentLinux 4.12-rc1 (diff)
downloadkernel-f752413e26bdc9f73a8a12e280770646555c82fc.tar.gz
kernel-f752413e26bdc9f73a8a12e280770646555c82fc.zip
drm/mediatek: fix a timeout loop
This code causes a static checker warning because it treats "i == 0" as a timeout but, because it's a post-op, the loop actually ends with "i" set to -1. Philipp Zabel points out that it would be cleaner to use readl_poll_timeout() instead. Fixes: 21898816831f ("drm/mediatek: add dsi transfer function") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: CK Hu <[email protected]> Reviewed-by: Philipp Zabel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions