[COMMON] fimc-is2: Deleted unused variables in hw_mcsc_disable
authorSunmi Lee <carrotsm.lee@samsung.com>
Fri, 29 Jun 2018 03:55:37 +0000 (12:55 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:06:03 +0000 (17:06 +0900)
The config and hw_mcsc were unused within the function.
So these were deleted.

Change-Id: I47339bd51926e34f179297c499cbacb25c2e39db
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c

index fe52cf716f06f0b467764ed6582f40b1533d7ac6..a691af5c924155c19514315e6b74a6129e3332c6 100644 (file)
@@ -458,9 +458,7 @@ static int fimc_is_hw_mcsc_disable(struct fimc_is_hw_ip *hw_ip, u32 instance, ul
        int ret = 0;
        u32 input_id, output_id;
        long timetowait;
-       bool config = true;
        struct fimc_is_hw_mcsc_cap *cap = GET_MCSC_HW_CAP(hw_ip);
-       struct fimc_is_hw_mcsc *hw_mcsc;
        struct fimc_is_hw_ip *hw_ip_ = NULL;
        struct mcs_param *mcs_param;
 
@@ -477,8 +475,6 @@ static int fimc_is_hw_mcsc_disable(struct fimc_is_hw_ip *hw_ip, u32 instance, ul
        msinfo_hw("mcsc_disable: Vvalid(%d)\n", instance, hw_ip,
                atomic_read(&hw_ip->status.Vvalid));
 
-       hw_mcsc = (struct fimc_is_hw_mcsc *)hw_ip->priv_info;
-
        if (test_bit(HW_RUN, &hw_ip->state)) {
                timetowait = wait_event_timeout(hw_ip->status.wait_queue,
                        !atomic_read(&hw_ip->status.Vvalid),
@@ -517,7 +513,6 @@ static int fimc_is_hw_mcsc_disable(struct fimc_is_hw_ip *hw_ip, u32 instance, ul
 
        for (output_id = MCSC_OUTPUT0; output_id < cap->max_output; output_id++) {
                input_id = fimc_is_scaler_get_scaler_path(hw_ip->regs, hw_ip->id, output_id);
-               config = (input_id == hw_ip->id ? true: false);
                if (cap->enable_shared_output == false || !test_bit(output_id, &mcsc_out_st)) {
                        msinfo_hw("[OUT:%d]hw_mcsc_disable: clear_wdma_addr\n", instance, hw_ip, output_id);
                        fimc_is_scaler_clear_wdma_addr(hw_ip->regs, output_id);