Commit c8c967a7 authored by yu kuai's avatar yu kuai Committed by Bartlomiej Zolnierkiewicz

video: fbdev: kyrofb: remove set but not used variable 'ulScaleRight'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/video/fbdev/kyro/STG4000OverlayDevice.c: In function
‘SetOverlayViewPort’:
drivers/video/fbdev/kyro/STG4000OverlayDevice.c:334:19: warning:
variable ‘ulScaleRight’ set but not used [-Wunused-but-set-variable]

It is never used, and so can be removed.
Signed-off-by: default avataryu kuai <yukuai3@huawei.com>
Cc: zhengbin <zhengbin13@huawei.com>
Cc: yi.zhang <yi.zhang@huawei.com>
[b.zolnierkie: minor patch summary fixup]
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200119121945.12517-1-yukuai3@huawei.com
parent 97e5ea1d
...@@ -331,7 +331,7 @@ int SetOverlayViewPort(volatile STG4000REG __iomem *pSTGReg, ...@@ -331,7 +331,7 @@ int SetOverlayViewPort(volatile STG4000REG __iomem *pSTGReg,
u32 ulScale; u32 ulScale;
u32 ulLeft, ulRight; u32 ulLeft, ulRight;
u32 ulSrcLeft, ulSrcRight; u32 ulSrcLeft, ulSrcRight;
u32 ulScaleLeft, ulScaleRight; u32 ulScaleLeft;
u32 ulhDecim; u32 ulhDecim;
u32 ulsVal; u32 ulsVal;
u32 ulVertDecFactor; u32 ulVertDecFactor;
...@@ -470,7 +470,6 @@ int SetOverlayViewPort(volatile STG4000REG __iomem *pSTGReg, ...@@ -470,7 +470,6 @@ int SetOverlayViewPort(volatile STG4000REG __iomem *pSTGReg,
* round down the pixel pos to the nearest 8 pixels. * round down the pixel pos to the nearest 8 pixels.
*/ */
ulScaleLeft = ulSrcLeft; ulScaleLeft = ulSrcLeft;
ulScaleRight = ulSrcRight;
/* shift fxscale until it is in the range of the scaler */ /* shift fxscale until it is in the range of the scaler */
ulhDecim = 0; ulhDecim = 0;
......
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