From: Pengcheng Chen Date: Wed, 13 Sep 2017 04:34:47 +0000 (+0800) Subject: osd: clean up deadcode X-Git-Tag: khadas-vims-v0.9.6-release~2841 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fba1030374f525ee938f762e01a545af25e7a639;p=platform%2Fkernel%2Flinux-amlogic.git osd: clean up deadcode PD#150472: driver defect clean up: #118 #147 Change-Id: I5eb405b884e05d42f238db43c9d3a16255f06d84 Signed-off-by: Pengcheng Chen --- diff --git a/drivers/amlogic/media/osd/osd_hw.c b/drivers/amlogic/media/osd/osd_hw.c index fee822c..15972da 100644 --- a/drivers/amlogic/media/osd/osd_hw.c +++ b/drivers/amlogic/media/osd/osd_hw.c @@ -2574,7 +2574,7 @@ static void osd1_update_disp_freescale_enable(void) hsc_ini_rcv_num = hf_bank_len; vsc_ini_rcv_num = vf_bank_len; hsc_ini_rpt_p0_num = - (hf_bank_len / 2 - 1) > 0 ? (hf_bank_len / 2 - 1) : 0; + hf_bank_len / 2 - 1; vsc_ini_rpt_p0_num = (vf_bank_len / 2 - 1) > 0 ? (vf_bank_len / 2 - 1) : 0; @@ -2727,7 +2727,7 @@ static void osd2_update_disp_freescale_enable(void) hsc_ini_rcv_num = hf_bank_len; vsc_ini_rcv_num = vf_bank_len; hsc_ini_rpt_p0_num = - (hf_bank_len / 2 - 1) > 0 ? (hf_bank_len / 2 - 1) : 0; + hf_bank_len / 2 - 1; vsc_ini_rpt_p0_num = (vf_bank_len / 2 - 1) > 0 ? (vf_bank_len / 2 - 1) : 0;