Commit b6fe6e06 authored by Mathieu Poirier's avatar Mathieu Poirier Committed by Greg Kroah-Hartman

staging: skein: Fixing single statement macro checkpatch warning

WARNING: Single statement macros should not use a do {} while (0) loop
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Acked-by: default avatarJason Cooper <jason@lakedaemon.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1fab3fde
...@@ -82,10 +82,7 @@ do { \ ...@@ -82,10 +82,7 @@ do { \
} while (0) } while (0)
#else #else
/* looping version */ /* looping version */
#define R256(p0, p1, p2, p3, ROT, r_num) \ #define R256(p0, p1, p2, p3, ROT, r_num) ROUND256(p0, p1, p2, p3, ROT, r_num)
do { \
ROUND256(p0, p1, p2, p3, ROT, r_num); \
} while (0)
#define I256(R) \ #define I256(R) \
do { \ do { \
...@@ -174,9 +171,7 @@ do { \ ...@@ -174,9 +171,7 @@ do { \
#else /* looping version */ #else /* looping version */
#define R512(p0, p1, p2, p3, p4, p5, p6, p7, ROT, r_num) \ #define R512(p0, p1, p2, p3, p4, p5, p6, p7, ROT, r_num) \
do { \ ROUND512(p0, p1, p2, p3, p4, p5, p6, p7, ROT, r_num) \
ROUND512(p0, p1, p2, p3, p4, p5, p6, p7, ROT, r_num); \
} while (0)
#define I512(R) \ #define I512(R) \
do { \ do { \
...@@ -263,10 +258,8 @@ do { \ ...@@ -263,10 +258,8 @@ do { \
#if SKEIN_UNROLL_1024 == 0 #if SKEIN_UNROLL_1024 == 0
#define R1024(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, pA, pB, pC, pD, pE, pF, \ #define R1024(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, pA, pB, pC, pD, pE, pF, \
ROT, rn) \ ROT, rn) \
do { \
ROUND1024(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, pA, pB, pC, pD, pE, \ ROUND1024(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, pA, pB, pC, pD, pE, \
pF, ROT, rn); \ pF, ROT, rn) \
} while (0)
#define I1024(R) \ #define I1024(R) \
do { \ do { \
...@@ -291,10 +284,8 @@ do { \ ...@@ -291,10 +284,8 @@ do { \
#else /* looping version */ #else /* looping version */
#define R1024(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, pA, pB, pC, pD, pE, pF, \ #define R1024(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, pA, pB, pC, pD, pE, pF, \
ROT, rn) \ ROT, rn) \
do { \
ROUND1024(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, pA, pB, pC, pD, pE, \ ROUND1024(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, pA, pB, pC, pD, pE, \
pF, ROT, rn); \ pF, ROT, rn) \
} while (0)
#define I1024(R) \ #define I1024(R) \
do { \ do { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment