diff options
author | Shiva Kerdel | 2017-02-16 17:13:25 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2017-02-16 19:28:27 +0100 |
commit | db224d31bbcd04fe1e85b40649e61ced97776720 (patch) | |
tree | 5ae9b6cc39bac40a3304bab986963ddaed69dbda /drivers/staging/ks7010/michael_mic.c | |
parent | Staging: ks7010: ks*: Remove redundant blank lines (diff) | |
download | kernel-qcow2-linux-db224d31bbcd04fe1e85b40649e61ced97776720.tar.gz kernel-qcow2-linux-db224d31bbcd04fe1e85b40649e61ced97776720.tar.xz kernel-qcow2-linux-db224d31bbcd04fe1e85b40649e61ced97776720.zip |
Staging: ks7010: Add required and preferred spaces around operators
Spaces should be added around operators to improve readability
and are required in some cases.
Signed-off-by: Shiva Kerdel <shiva@exdev.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ks7010/michael_mic.c')
-rw-r--r-- | drivers/staging/ks7010/michael_mic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/ks7010/michael_mic.c b/drivers/staging/ks7010/michael_mic.c index 2f535c08e172..f6e70fa2a12f 100644 --- a/drivers/staging/ks7010/michael_mic.c +++ b/drivers/staging/ks7010/michael_mic.c @@ -14,11 +14,11 @@ #include "michael_mic.h" // Rotation functions on 32 bit values -#define ROL32(A, n) (((A) << (n)) | (((A)>>(32-(n))) & ((1UL << (n)) - 1))) -#define ROR32(A, n) ROL32((A), 32-(n)) +#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) \ |