From 4337695b33134fa778fbd00a97098f4f2f41bd0a Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Fri, 25 Nov 2016 14:28:44 +0000 Subject: 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 --- drivers/misc/mediatek/video/mt6797/dispsys/ddp_ufoe.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3