]> 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)
commite3a7ec91ec7a0721d6ee103adb4d980a2c0bf8a3
tree447442d5a4a29f8cc90fd54bd1d0ac03a88a42c9
parenta7655d691a57e6d970a8c79413b762bb4c1460f5
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