drm/bridge: analogix_dp: possible condition with no effect (if == else)
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Sat, 25 May 2019 17:59:37 +0000 (23:29 +0530)
committerAndrzej Hajda <a.hajda@samsung.com>
Thu, 13 Jun 2019 13:40:17 +0000 (15:40 +0200)
fix below warning reported by coccicheck

./drivers/gpu/drm/bridge/analogix/analogix_dp_core.c:1414:6-8: WARNING:
possible condition with no effect (if == else)

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190525175937.GA29368@hari-Inspiron-1545
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c

index d2de98d441845d803c14f30f2d0afca021db82bd..e7f9231b5ad4311316abfa8d7ee1099ce6b3a0c0 100644 (file)
@@ -1411,8 +1411,6 @@ static void analogix_dp_bridge_mode_set(struct drm_bridge *bridge,
                video->color_space = COLOR_YCBCR444;
        else if (display_info->color_formats & DRM_COLOR_FORMAT_YCRCB422)
                video->color_space = COLOR_YCBCR422;
-       else if (display_info->color_formats & DRM_COLOR_FORMAT_RGB444)
-               video->color_space = COLOR_RGB;
        else
                video->color_space = COLOR_RGB;