From cb6bb4cf97870dacceeb2941113944089e805d41 Mon Sep 17 00:00:00 2001 From: Xihai Zhu Date: Thu, 26 Sep 2019 22:24:33 -0400 Subject: [PATCH] amvecm: fix coverity issue detected [1/1] 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 --- drivers/amlogic/media/enhancement/amvecm/amvecm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/amlogic/media/enhancement/amvecm/amvecm.c b/drivers/amlogic/media/enhancement/amvecm/amvecm.c index c55d36f..208fbaf 100644 --- a/drivers/amlogic/media/enhancement/amvecm/amvecm.c +++ b/drivers/amlogic/media/enhancement/amvecm/amvecm.c @@ -6982,7 +6982,7 @@ static void aml_vecm_dt_parse(struct platform_device *pdev) if (val == 0) pattern_mask = pattern_mask & - (!PATTERN_MASK(PATTERN_75COLORBAR)); + (~PATTERN_MASK(PATTERN_75COLORBAR)); else pattern_mask = pattern_mask | @@ -6995,7 +6995,7 @@ static void aml_vecm_dt_parse(struct platform_device *pdev) if (val == 0) pattern_mask = pattern_mask & - (!PATTERN_MASK(PATTERN_SKIN_TONE_FACE)); + (~PATTERN_MASK(PATTERN_SKIN_TONE_FACE)); else pattern_mask = pattern_mask | @@ -7008,7 +7008,7 @@ static void aml_vecm_dt_parse(struct platform_device *pdev) if (val == 0) pattern_mask = pattern_mask & - (!PATTERN_MASK(PATTERN_GREEN_CORN)); + (~PATTERN_MASK(PATTERN_GREEN_CORN)); else pattern_mask = pattern_mask | -- 2.7.4