]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: ks7010: fix complex macro error
authorJiong Du <jiongdu0.0@gmail.com>
Tue, 25 Oct 2016 11:40:47 +0000 (19:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Oct 2016 13:19:37 +0000 (15:19 +0200)
Fixes checkpatch error: Macros with complex values should be enclosed in parentheses

Signed-off-by: Jiong Du <jiongdu0.0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/michael_mic.c

index fadc5636c1485f2d7cdc137776e22d1d956270cf..09202adf399fd8d70843964b52da66475c6399a1 100644 (file)
@@ -17,7 +17,7 @@
 #define ROL32(A, n)    (((A) << (n)) | (((A)>>(32-(n))) & ((1UL << (n)) - 1)))
 #define ROR32(A, n)    ROL32((A), 32-(n))
 // Convert from Byte[] to UInt32 in a portable way
-#define getUInt32(A, B)        (uint32_t)(A[B+0] << 0) + (A[B+1] << 8) + (A[B+2] << 16) + (A[B+3] << 24)
+#define getUInt32(A, B)        ((uint32_t)(A[B+0] << 0) + (A[B+1] << 8) + (A[B+2] << 16) + (A[B+3] << 24))
 
 // Convert from UInt32 to Byte[] in a portable way
 #define putUInt32(A, B, C)                                     \