From: Sanghoon Lee Date: Mon, 26 Mar 2018 06:14:22 +0000 (+0900) Subject: [9810] fimc-is2: Set default value into the input DMA order on error case X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2d01efe22e38f1a00c6e11be7c22408391b9cdd3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [9810] fimc-is2: Set default value into the input DMA order on error case Change-Id: Ie3420d6df394cbdb3f81dad19b1484927b48b15d Signed-off-by: Sanghoon Lee --- diff --git a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_0_0/fimc-is-param.h b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_0_0/fimc-is-param.h index d021cbf9ee7e..383cc7462b1f 100644 --- a/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_0_0/fimc-is-param.h +++ b/drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_0_0/fimc-is-param.h @@ -1479,9 +1479,6 @@ static inline enum dma_input_order change_to_input_order(enum dma_output_order o enum dma_input_order input_order; switch (output_order) { - case DMA_OUTPUT_ORDER_NO: - input_order = DMA_INPUT_ORDER_NO; - break; case DMA_OUTPUT_ORDER_CrCb: input_order = DMA_INPUT_ORDER_CrCb; break; @@ -1506,8 +1503,9 @@ static inline enum dma_input_order change_to_input_order(enum dma_output_order o case DMA_OUTPUT_ORDER_YCbCr: input_order = DMA_INPUT_ORDER_YCbCr; break; + case DMA_OUTPUT_ORDER_NO: default: - input_order = output_order; + input_order = DMA_INPUT_ORDER_NO; break; }