Commit cbb28bb0 authored by YoungJun Cho's avatar YoungJun Cho Committed by Inki Dae

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: default avatarYoungJun Cho <yj44.cho@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent c58c1599
...@@ -413,9 +413,6 @@ static int vidi_power_on(struct vidi_context *ctx, bool enable) ...@@ -413,9 +413,6 @@ static int vidi_power_on(struct vidi_context *ctx, bool enable)
struct exynos_drm_subdrv *subdrv = &ctx->subdrv; struct exynos_drm_subdrv *subdrv = &ctx->subdrv;
struct device *dev = subdrv->dev; struct device *dev = subdrv->dev;
if (enable != false && enable != true)
return -EINVAL;
if (enable) { if (enable) {
ctx->suspended = false; ctx->suspended = false;
......
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