Skip to content

Commit 28b0d54

Browse files
Bernard Zhaodaeinki
authored andcommitted
drm/exynos: remove useless type conversion
This change is to cleanup the code a bit. Signed-off-by: Bernard Zhao <[email protected]> Signed-off-by: Inki Dae <[email protected]>
1 parent 2043e6f commit 28b0d54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/exynos/exynos_drm_fimc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,8 +782,8 @@ static int fimc_set_prescaler(struct fimc_context *ctx, struct fimc_scaler *sc,
782782

783783
sc->hratio = (src_w << 14) / (dst_w << hfactor);
784784
sc->vratio = (src_h << 14) / (dst_h << vfactor);
785-
sc->up_h = (dst_w >= src_w) ? true : false;
786-
sc->up_v = (dst_h >= src_h) ? true : false;
785+
sc->up_h = (dst_w >= src_w);
786+
sc->up_v = (dst_h >= src_h);
787787
DRM_DEV_DEBUG_KMS(ctx->dev, "hratio[%d]vratio[%d]up_h[%d]up_v[%d]\n",
788788
sc->hratio, sc->vratio, sc->up_h, sc->up_v);
789789

0 commit comments

Comments
 (0)