crypto: fcrypt - Remove 'do while(0)' loop for single statement macro
Remove the 'do while(0)' loop in the macro, as it is not needed for single statement macros. Condense into one line. Signed-off-by: Milan Djurovic <mdjurovic@zohomail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
c29da9700f
commit
5c083eb3e9
|
@ -63,10 +63,7 @@ do { \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/* Rotate right one 64 bit number as a 56 bit number */
|
/* Rotate right one 64 bit number as a 56 bit number */
|
||||||
#define ror56_64(k, n) \
|
#define ror56_64(k, n) (k = (k >> n) | ((k & ((1 << n) - 1)) << (56 - n)))
|
||||||
do { \
|
|
||||||
k = (k >> n) | ((k & ((1 << n) - 1)) << (56 - n)); \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sboxes for Feistel network derived from
|
* Sboxes for Feistel network derived from
|
||||||
|
|
Loading…
Reference in New Issue