aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>2017-08-22 10:19:39 -0400
committerInki Dae <inki.dae@samsung.com>2017-08-24 23:07:11 -0400
commit1e60d62f3811e5c446738a85f61bed5d84de113b (patch)
tree5e45baddf12396a211b91eeafac2a5b0b0a4aa37 /drivers/gpu
parent0f75269492c490e2a44ff4e3d52bbe31f60cfdb9 (diff)
drm/exynos: mixer: simplify mixer_graph_buffer()
DRM core already checks in drm_atomic_plane_check() if the pixelformat is valid. Hence we can collapse the default case of the switch statement with the XRGB8888 case. No functional change. Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/exynos/exynos_mixer.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c
index 1a9dfc830754..23d47cdfdf10 100644
--- a/drivers/gpu/drm/exynos/exynos_mixer.c
+++ b/drivers/gpu/drm/exynos/exynos_mixer.c
@@ -606,12 +606,9 @@ static void mixer_graph_buffer(struct mixer_context *ctx,
606 606
607 case DRM_FORMAT_XRGB8888: 607 case DRM_FORMAT_XRGB8888:
608 case DRM_FORMAT_ARGB8888: 608 case DRM_FORMAT_ARGB8888:
609 default:
609 fmt = MXR_FORMAT_ARGB8888; 610 fmt = MXR_FORMAT_ARGB8888;
610 break; 611 break;
611
612 default:
613 DRM_DEBUG_KMS("pixelformat unsupported by mixer\n");
614 return;
615 } 612 }
616 613
617 /* ratio is already checked by common plane code */ 614 /* ratio is already checked by common plane code */