aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2016-11-25 14:28:44 +0000
committerDaniel Thompson <daniel.thompson@linaro.org>2016-11-25 14:44:00 +0000
commit4337695b33134fa778fbd00a97098f4f2f41bd0a (patch)
treee9f2cb6f13ba0b9bc216340607022e25632f31d4
parent9c034648fc1444f1648864db962092eb7de48e7f (diff)
mediatek: video: Hack around a warning.
This code, which is compiled with -Werror, does not compile cleanly with gcc-5.3. There is a real bug here (which I have not attemped to fix) since there's no way compress_ratio should be a boolean. Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
-rw-r--r--drivers/misc/mediatek/video/mt6797/dispsys/ddp_ufoe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/mediatek/video/mt6797/dispsys/ddp_ufoe.c b/drivers/misc/mediatek/video/mt6797/dispsys/ddp_ufoe.c
index 12957cebf84a..f003c252e950 100644
--- a/drivers/misc/mediatek/video/mt6797/dispsys/ddp_ufoe.c
+++ b/drivers/misc/mediatek/video/mt6797/dispsys/ddp_ufoe.c
@@ -168,6 +168,7 @@ static int _ufoe_partial_update(DISP_MODULE_ENUM module, void *arg, void *handle
if (ufoe_enable) {
if (lr_mode_en == 0) {
+#if 0 /* unreachable - compress_ratio is boolean */
if (compress_ratio == 3) {
unsigned int internal_width = width + width % 4;
@@ -178,6 +179,7 @@ static int _ufoe_partial_update(DISP_MODULE_ENUM module, void *arg, void *handle
(((internal_width / 6 + 1) * 6) - internal_width));
}
}
+#endif
}
DISP_REG_SET(handle, DISP_REG_UFO_FRAME_WIDTH, width);
DISP_REG_SET(handle, DISP_REG_UFO_FRAME_HEIGHT, height);