提交 df86d641 编写于 作者: J Jiong Du 提交者: Greg Kroah-Hartman

staging: ks7010: fix spacing errors

Fixes checkpatch errors: spacing errors
Signed-off-by: NJiong Du <jiongdu0.0@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 decd3d0c
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
#include "michael_mic.h" #include "michael_mic.h"
// Rotation functions on 32 bit values // Rotation functions on 32 bit values
#define ROL32( A, n ) ( ((A) << (n)) | ( ((A)>>(32-(n))) & ( (1UL << (n)) - 1 ) ) ) #define ROL32(A, n) (((A) << (n)) | (((A)>>(32-(n))) & ((1UL << (n)) - 1)))
#define ROR32( A, n ) ROL32( (A), 32-(n) ) #define ROR32(A, n) ROL32((A), 32-(n))
// Convert from Byte[] to UInt32 in a portable way // 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 // Convert from UInt32 to Byte[] in a portable way
#define putUInt32(A, B, C) \ #define putUInt32(A, B, C) \
...@@ -48,16 +48,16 @@ void MichaelInitializeFunction(struct michel_mic_t *Mic, uint8_t *key) ...@@ -48,16 +48,16 @@ void MichaelInitializeFunction(struct michel_mic_t *Mic, uint8_t *key)
} }
#define MichaelBlockFunction(L, R) \ #define MichaelBlockFunction(L, R) \
do{ \ do { \
R ^= ROL32( L, 17 ); \ R ^= ROL32(L, 17); \
L += R; \ L += R; \
R ^= ((L & 0xff00ff00) >> 8) | ((L & 0x00ff00ff) << 8); \ R ^= ((L & 0xff00ff00) >> 8) | ((L & 0x00ff00ff) << 8); \
L += R; \ L += R; \
R ^= ROL32( L, 3 ); \ R ^= ROL32(L, 3); \
L += R; \ L += R; \
R ^= ROR32( L, 2 ); \ R ^= ROR32(L, 2); \
L += R; \ L += R; \
}while(0) } while (0)
static static
void MichaelAppend(struct michel_mic_t *Mic, uint8_t *src, int nBytes) void MichaelAppend(struct michel_mic_t *Mic, uint8_t *src, int nBytes)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册