Skip to content
Commit dab64724 authored by Himanshu Jha's avatar Himanshu Jha Committed by Kumar Gala
Browse files

drivers: crypto: Fix precedence issue in if statement



The logical NOT operator has a higher precedence than bitwise
AND operator. Therefore to make the test in if statement
correct, add parenthesis around the operands of bitwise
AND operator.

Found using Coccinelle.

Semantic Patch Language (SmPL) used:

<smpl>

@@
expression x;
constant C;
@@

- !x & C
+ !(x & C)

</smpl>

Signed-off-by: default avatarHimanshu Jha <himanshujha199640@gmail.com>
parent e8420d91
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment