[COMMON] fimc-is2: Deleted redundant conditional sentence
authorSunmi Lee <carrotsm.lee@samsung.com>
Fri, 29 Jun 2018 06:05:02 +0000 (15:05 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Mon, 23 Jul 2018 08:05:56 +0000 (17:05 +0900)
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 <carrotsm.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/hardware/fimc-is-hw-mcscaler-v2.c

index 18269d6b5681d3470dd0e9ba7e69f6659ef20578..f786aede980925ee9c5c1099447dcc2897926f8e 100644 (file)
@@ -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,