From 5374e3b03072aa4553853af44dcadc114a6c6ae1 Mon Sep 17 00:00:00 2001 From: Sunmi Lee Date: Fri, 29 Jun 2018 09:42:01 +0900 Subject: [PATCH] [COMMON] fimc-is2: Deleted needless codes in hw_mcsc_close There is no need to clear_bit of variable in hw_mcsc. The vfree function is called right after these codes. Change-Id: Ib6473ad4d6e1ac7134bd77e3953e633e516aa085 Signed-off-by: Sunmi Lee --- .../exynos/fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c b/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c index 001183a6043f..9cae8a27f296 100644 --- a/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c +++ b/drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c @@ -369,23 +369,12 @@ static int fimc_is_hw_mcsc_close(struct fimc_is_hw_ip *hw_ip, u32 instance) { int ret = 0; u32 output_id; - struct fimc_is_hw_mcsc *hw_mcsc; - struct fimc_is_hw_mcsc_cap *cap; FIMC_BUG(!hw_ip); if (!test_bit(HW_OPEN, &hw_ip->state)) return 0; - hw_mcsc = (struct fimc_is_hw_mcsc *)hw_ip->priv_info; - cap = GET_MCSC_HW_CAP(hw_ip); - - /* clear out_en bit */ - for (output_id = MCSC_OUTPUT0; output_id < cap->max_output; output_id++) { - if (test_bit(output_id, &hw_mcsc->out_en)) - clear_bit(output_id, &hw_mcsc->out_en); - } - vfree(hw_ip->priv_info); frame_manager_close(hw_ip->framemgr); frame_manager_close(hw_ip->framemgr_late); -- 2.20.1