drm/exynos: mixer: simplify mixer_graph_buffer()
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Tue, 22 Aug 2017 14:19:39 +0000 (16:19 +0200)
committerInki Dae <inki.dae@samsung.com>
Fri, 25 Aug 2017 03:07:11 +0000 (12:07 +0900)
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>
drivers/gpu/drm/exynos/exynos_mixer.c

index 1a9dfc8..23d47cd 100644 (file)
@@ -606,12 +606,9 @@ static void mixer_graph_buffer(struct mixer_context *ctx,
 
        case DRM_FORMAT_XRGB8888:
        case DRM_FORMAT_ARGB8888:
+       default:
                fmt = MXR_FORMAT_ARGB8888;
                break;
-
-       default:
-               DRM_DEBUG_KMS("pixelformat unsupported by mixer\n");
-               return;
        }
 
        /* ratio is already checked by common plane code */