aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-09-11 08:00:53 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2018-10-02 02:36:56 -0400
commit3a75010cecc93d299aec56caae8516ea40287a98 (patch)
tree69beb91c5dff23a53861389c335d95931c512200 /drivers/gpu/drm/omapdrm
parent993d52e2f71560d539b3f194be2970eb9d8ce9c1 (diff)
drm/omap: remove set but not used variable 'frame_height'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/omapdrm/dss/dispc.c: In function 'dispc_ovl_setup_common': drivers/gpu/drm/omapdrm/dss/dispc.c:2627:19: warning: variable 'frame_height' set but not used [-Wunused-but-set-variable] Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm')
-rw-r--r--drivers/gpu/drm/omapdrm/dss/dispc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/dispc.c b/drivers/gpu/drm/omapdrm/dss/dispc.c
index e61a9592a650..7c23f23137e9 100644
--- a/drivers/gpu/drm/omapdrm/dss/dispc.c
+++ b/drivers/gpu/drm/omapdrm/dss/dispc.c
@@ -2624,7 +2624,7 @@ static int dispc_ovl_setup_common(struct dispc_device *dispc,
2624 unsigned int offset0, offset1; 2624 unsigned int offset0, offset1;
2625 s32 row_inc; 2625 s32 row_inc;
2626 s32 pix_inc; 2626 s32 pix_inc;
2627 u16 frame_width, frame_height; 2627 u16 frame_width;
2628 unsigned int field_offset = 0; 2628 unsigned int field_offset = 0;
2629 u16 in_height = height; 2629 u16 in_height = height;
2630 u16 in_width = width; 2630 u16 in_width = width;
@@ -2714,13 +2714,10 @@ static int dispc_ovl_setup_common(struct dispc_device *dispc,
2714 row_inc = 0; 2714 row_inc = 0;
2715 pix_inc = 0; 2715 pix_inc = 0;
2716 2716
2717 if (plane == OMAP_DSS_WB) { 2717 if (plane == OMAP_DSS_WB)
2718 frame_width = out_width; 2718 frame_width = out_width;
2719 frame_height = out_height; 2719 else
2720 } else {
2721 frame_width = in_width; 2720 frame_width = in_width;
2722 frame_height = height;
2723 }
2724 2721
2725 calc_offset(screen_width, frame_width, 2722 calc_offset(screen_width, frame_width,
2726 fourcc, fieldmode, field_offset, 2723 fourcc, fieldmode, field_offset,