MLK-11911-3 mxc IPUv3: disp: Correct display ID check in ipu_uninit_sync_panel()
authorLiu Ying <Ying.Liu@freescale.com>
Thu, 26 Nov 2015 08:11:17 +0000 (16:11 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:17 +0000 (14:49 -0500)
commita632fdc9c28dd37f01b7e6dcfc16b54d6d304eb8
tree741ecdf08837dc378bf98bd6d5d8955e0b09cbdd
parent40ca0efd4adb459e643b29180cb1ee0a2d1945a8
MLK-11911-3 mxc IPUv3: disp: Correct display ID check in ipu_uninit_sync_panel()

This patch fixes the following issue reported by Coverity:
Constant expression result (CONSTANT_EXPRESSION_RESULT)
always_true_or: The "or" condition disp != 0 || disp != 1 will always be true
because disp cannot be equal to two different values at the same time, so it
must be not equal to at least one of them.
if ((disp != 0) || (disp != 1))
return;

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