diff options
author | Hariprasad Kelam <hariprasad.kelam@gmail.com> | 2019-05-25 23:29:37 +0530 |
---|---|---|
committer | Andrzej Hajda <a.hajda@samsung.com> | 2019-06-13 15:40:17 +0200 |
commit | 1de287512dfd64fdcfa5f6231d7c0b1f85483723 (patch) | |
tree | f84e74cbb03cb47adc457608ed54a92517c6c59a | |
parent | 2a08f2b8990ce59f9c1e4c2ede1702e9635c2a60 (diff) | |
download | linux-1de287512dfd64fdcfa5f6231d7c0b1f85483723.tar.bz2 |
drm/bridge: analogix_dp: possible condition with no effect (if == else)
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
-rw-r--r-- | drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index d2de98d44184..e7f9231b5ad4 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c @@ -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; |