Commit 1e60d62f authored by Tobias Jakobi's avatar Tobias Jakobi Committed by Inki Dae

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: default avatarTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 0f752694
...@@ -606,12 +606,9 @@ static void mixer_graph_buffer(struct mixer_context *ctx, ...@@ -606,12 +606,9 @@ static void mixer_graph_buffer(struct mixer_context *ctx,
case DRM_FORMAT_XRGB8888: case DRM_FORMAT_XRGB8888:
case DRM_FORMAT_ARGB8888: case DRM_FORMAT_ARGB8888:
default:
fmt = MXR_FORMAT_ARGB8888; fmt = MXR_FORMAT_ARGB8888;
break; break;
default:
DRM_DEBUG_KMS("pixelformat unsupported by mixer\n");
return;
} }
/* ratio is already checked by common plane code */ /* ratio is already checked by common plane code */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment