summaryrefslogtreecommitdiff
path: root/drivers/staging/ks7010
diff options
context:
space:
mode:
authorJiong Du <jiongdu0.0@gmail.com>2016-10-25 19:40:47 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-27 15:19:37 +0200
commit84b8ae9fd5981884dbdbdeda9ef5efd16ade5ddc (patch)
treeaedd5b05b0459fc7d59f20af7679ed9bd0eaff3c /drivers/staging/ks7010
parentdf86d641db7659ad29394df71e7ea286beec4380 (diff)
staging: ks7010: fix complex macro error
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>
Diffstat (limited to 'drivers/staging/ks7010')
-rw-r--r--drivers/staging/ks7010/michael_mic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ks7010/michael_mic.c b/drivers/staging/ks7010/michael_mic.c
index fadc5636c148..09202adf399f 100644
--- a/drivers/staging/ks7010/michael_mic.c
+++ b/drivers/staging/ks7010/michael_mic.c
@@ -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) \