[COMMON] fimc-is2: Deleted needless codes in hw_mcsc_close
authorSunmi Lee <carrotsm.lee@samsung.com>
Fri, 29 Jun 2018 00:42:01 +0000 (09:42 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:05:59 +0000 (17:05 +0900)
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 <carrotsm.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c

index 001183a6043fb89b11335b60b6d1545e41c0b311..9cae8a27f2968408ab7e1b139c116d5d353a091a 100644 (file)
@@ -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);