]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge/synopsys: dsi: readl_poll_timeout return value clean up
authorPhilippe CORNU <philippe.cornu@st.com>
Sun, 4 Feb 2018 21:36:24 +0000 (22:36 +0100)
committerAndrzej Hajda <a.hajda@samsung.com>
Mon, 5 Mar 2018 13:08:16 +0000 (14:08 +0100)
commitac329c06ae5f96067d494a211e8432b3f88a3764
tree447442d5a4a29f8cc90fd54bd1d0ac03a88a42c9
parent0ae7bce421c9174fb6ebaac6a7b0fdaeb33c670d
drm/bridge/synopsys: dsi: readl_poll_timeout return value clean up

The readl_poll_timeout() return value is 0 in case of success
so it is better to detect errors without taking care of the
return value sign.

Signed-off-by: Philippe Cornu <philippe.cornu@st.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180204213624.18288-1-philippe.cornu@st.com
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c