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>
uint32_t reg;
uint32_t di_gen;
- if ((disp != 0) || (disp != 1))
+ if (disp != 0 && disp != 1)
return;
mutex_lock(&ipu->mutex_lock);