PD#SWPL-14679
Problem:
coverity issue detected, logical operation
is wrongly used for bit operation
Solution:
update related code
Verify:
tl1
Change-Id: I3b98e702205382dabe4b0cd75f9586cac1bccd48
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
if (val == 0)
pattern_mask =
pattern_mask &
- (!PATTERN_MASK(PATTERN_75COLORBAR));
+ (~PATTERN_MASK(PATTERN_75COLORBAR));
else
pattern_mask =
pattern_mask |
if (val == 0)
pattern_mask =
pattern_mask &
- (!PATTERN_MASK(PATTERN_SKIN_TONE_FACE));
+ (~PATTERN_MASK(PATTERN_SKIN_TONE_FACE));
else
pattern_mask =
pattern_mask |
if (val == 0)
pattern_mask =
pattern_mask &
- (!PATTERN_MASK(PATTERN_GREEN_CORN));
+ (~PATTERN_MASK(PATTERN_GREEN_CORN));
else
pattern_mask =
pattern_mask |