OpenCloudOS-Kernel/drivers/gpu/drm/stm
Arnd Bergmann 3ff558e78b drm/stm: fix warning about multiplication in condition
gcc-7 complains about multiplying within a condition being
suspicious:

drivers/gpu/drm/stm/dw_mipi_dsi-stm.c: In function 'dsi_pll_get_clkout_khz':
drivers/gpu/drm/stm/dw_mipi_dsi-stm.c:117:10: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context]

The code here is correct, but can be easily rephrased to make
that more obvious. I also swap out the error handling and the normal
code path for clarity.

Fixes: b0f09a3c69d9 ("drm/stm: Add STM32 DSI controller driver")
Acked-by: Philippe Cornu <philippe.cornu@st.com>
Tested-by: Philippe Cornu <philippe.cornu@st.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20170906131331.2691300-1-arnd@arndb.de
2017-09-08 10:29:11 +02:00
..
Kconfig drm: stm: remove "default y" in Kconfig 2017-07-26 14:43:23 +02:00
Makefile drm/stm: Add STM32 DSI controller driver 2017-07-26 14:42:52 +02:00
drv.c drm/stm: Use drm_gem_fb_create() 2017-09-02 14:23:27 +02:00
dw_mipi_dsi-stm.c drm/stm: fix warning about multiplication in condition 2017-09-08 10:29:11 +02:00
ltdc.c drm: Nuke drm_atomic_helper_plane_set_property 2017-08-08 14:45:16 +02:00
ltdc.h drm: stm: remove dead code and pointless local lut storage 2017-08-04 11:37:00 +02:00