OpenCloudOS-Kernel/drivers/gpu/drm/stm
Philippe CORNU c20f5f69c8 drm/stm: ltdc: fix warning in ltdc_crtc_update_clut()
Fix the warning
"warn: variable dereferenced before check 'crtc' (see line 390)"
by removing unnecessary checks as ltdc_crtc_update_clut() is
only called from ltdc_crtc_atomic_flush() where crtc and
crtc->state are not NULL.

Many thanks to Dan Carpenter for the bug report
https://lists.freedesktop.org/archives/dri-devel/2018-February/166918.html

Signed-off-by: Philippe Cornu <philippe.cornu@st.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: yannick fertre <yannick.fertre@st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180410135312.3553-1-philippe.cornu@st.com
2018-04-19 12:24:45 +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: move enable/disable_vblank to crtc 2018-04-19 12:03:11 +02:00
dw_mipi_dsi-stm.c drm/stm: dsi: Add 1.31 version support 2018-01-30 11:45:01 +01:00
ltdc.c drm/stm: ltdc: fix warning in ltdc_crtc_update_clut() 2018-04-19 12:24:45 +02:00
ltdc.h drm/stm: ltdc: add user update info in plane print state 2018-04-19 12:15:38 +02:00