From 23a07cc6e29112c73e5594fe0606d6cc5f481de7 Mon Sep 17 00:00:00 2001 From: Sunmi Lee Date: Fri, 29 Jun 2018 15:05:02 +0900 Subject: [PATCH] [COMMON] fimc-is2: Deleted redundant conditional sentence There is no need to check dma input cmd is enabled or not. A conditional setence to check this was also in rdma_cfg function. Change-Id: I0bfa1a5332e9245e0407c392c69aa017d6d55753 Signed-off-by: Sunmi Lee --- .../fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 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 18269d6b5681..f786aede9809 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 @@ -155,17 +155,14 @@ static int fimc_is_hw_mcsc_handle_interrupt(u32 id, void *context) if (hw_ip->mframe) { struct fimc_is_frame *mframe = hw_ip->mframe; mframe->cur_buf_index = hw_ip->cur_s_int; - /* WDMA cfg */ + fimc_is_hw_mcsc_wdma_cfg(hw_ip, mframe); - /* RDMA cfg */ - if (param->input.dma_cmd == DMA_INPUT_COMMAND_ENABLE) { - ret = fimc_is_hw_mcsc_rdma_cfg(hw_ip, mframe); - if (ret) { - mserr_hw("[F:%d]mcsc rdma_cfg failed\n", - mframe->instance, hw_ip, mframe->fcount); - return ret; - } + ret = fimc_is_hw_mcsc_rdma_cfg(hw_ip, mframe); + if (ret) { + mserr_hw("[F:%d]mcsc rdma_cfg failed\n", + mframe->instance, hw_ip, mframe->fcount); + return ret; } } else { serr_hw("mframe is null(s:%d, e:%d, t:%d)", hw_ip, -- 2.20.1