From: YoungJun Cho Date: Mon, 1 Jul 2013 04:03:39 +0000 (+0900) Subject: drm/exynos: remove dead code in vidi_power_on X-Git-Tag: v3.12-rc1~464^2~7^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbb28bb09d41872909fdbd4ba56eb1ba55146c03;p=kernel%2Fkernel-generic.git drm/exynos: remove dead code in vidi_power_on The type of input parameter enable is bool, so it does not need to check whether true or false. Signed-off-by: YoungJun Cho Signed-off-by: Kyungmin Park Signed-off-by: Inki Dae --- diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c index 784bbce..41cc74d 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c @@ -413,9 +413,6 @@ static int vidi_power_on(struct vidi_context *ctx, bool enable) struct exynos_drm_subdrv *subdrv = &ctx->subdrv; struct device *dev = subdrv->dev; - if (enable != false && enable != true) - return -EINVAL; - if (enable) { ctx->suspended = false;