Skip to content

Commit 2f1758d

Browse files
vatikagregkh
authored andcommitted
Staging: skein: Remove do-while(0) from single statement macros
Remove unneeded do-while(0) loop from single statement macros. Signed-off-by: Vatika Harlalka <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 192b3ff commit 2f1758d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

drivers/staging/skein/skein_block.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@ do { \
6868

6969
#if SKEIN_UNROLL_256 == 0
7070
#define R256(p0, p1, p2, p3, ROT, r_num) /* fully unrolled */ \
71-
do { \
72-
ROUND256(p0, p1, p2, p3, ROT, r_num); \
73-
} while (0)
71+
ROUND256(p0, p1, p2, p3, ROT, r_num)
7472

7573
#define I256(R) \
7674
do { \
@@ -152,9 +150,7 @@ do { \
152150

153151
#if SKEIN_UNROLL_512 == 0
154152
#define R512(p0, p1, p2, p3, p4, p5, p6, p7, ROT, r_num) /* unrolled */ \
155-
do { \
156-
ROUND512(p0, p1, p2, p3, p4, p5, p6, p7, ROT, r_num); \
157-
} while (0)
153+
ROUND512(p0, p1, p2, p3, p4, p5, p6, p7, ROT, r_num)
158154

159155
#define I512(R) \
160156
do { \

0 commit comments

Comments
 (0)