MLK-11911-7 mxc IPUv3: common: Convert macro tri_cur_buf_mask/shift to function
authorLiu Ying <Ying.Liu@freescale.com>
Fri, 27 Nov 2015 06:29:53 +0000 (14:29 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:17 +0000 (14:49 -0500)
commit279a87556b02692a8ee83879d50ca130d88886ec
tree916fa80da927b2ee3ac665dae8ac51722b117607
parentc9a998536d92d5b692e768e56f61813c6b7123dc
MLK-11911-7 mxc IPUv3: common: Convert macro tri_cur_buf_mask/shift to function

This patch converts macro tri_cur_buf_mask/shift to function to address the
following issue reported by Coverity:
Operands don't affect result (CONSTANT_EXPRESSION_RESULT)
result_independent_of_operands: dma_chan * 2 != 63 is always true regardless of
the values of its operands. This occurs as the logical first operand of '?:'.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
drivers/mxc/ipu3/ipu_common.c