From: Sunmi Lee Date: Fri, 29 Jun 2018 03:55:37 +0000 (+0900) Subject: [COMMON] fimc-is2: Deleted unused variables in hw_mcsc_disable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bb1a1193f489a0ecf1f957672e3a9f7b5409df77;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] fimc-is2: Deleted unused variables in hw_mcsc_disable The config and hw_mcsc were unused within the function. So these were deleted. Change-Id: I47339bd51926e34f179297c499cbacb25c2e39db Signed-off-by: Sunmi Lee --- 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 fe52cf716f06..a691af5c9241 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 @@ -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);