Skip to content

Commit

Permalink
drm/exynos: remove dead code in vidi_power_on
Browse files Browse the repository at this point in the history
The type of input parameter enable is bool, so it does not need
to check whether true or false.

Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
  • Loading branch information
YoungJun Cho authored and Inki Dae committed Jul 4, 2013
1 parent c58c159 commit cbb28bb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/drm/exynos/exynos_drm_vidi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit cbb28bb

Please sign in to comment.