diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-04-21 13:51:43 +0300 |
---|---|---|
committer | CK Hu <ck.hu@mediatek.com> | 2017-05-22 13:49:11 +0800 |
commit | f752413e26bdc9f73a8a12e280770646555c82fc (patch) | |
tree | 42376cc73937b9b6204a0d81fe42ece0bd48da54 /scripts/gdb/linux/utils.py | |
parent | 2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff) |
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 <dan.carpenter@oracle.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions