summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorMilan Djurovic <mdjurovic@zohomail.com>2021-03-26 21:35:11 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2021-04-02 10:28:13 +0300
commit5c083eb3e9ca32c0ef257246dc979c8853ffcdb1 (patch)
treec027dbd9b2dc33f29fd5b48bff19da64d92f2119 /crypto
parentc29da9700f8ce19175a37e6a79dbd49f98625bfd (diff)
downloadlinux-5c083eb3e9ca32c0ef257246dc979c8853ffcdb1.tar.xz
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>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/fcrypt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/fcrypt.c b/crypto/fcrypt.c
index c36ea0c8be98..76a04d000c0d 100644
--- a/crypto/fcrypt.c
+++ b/crypto/fcrypt.c
@@ -63,10 +63,7 @@ do { \
} while (0)
/* Rotate right one 64 bit number as a 56 bit number */
-#define ror56_64(k, n) \
-do { \
- k = (k >> n) | ((k & ((1 << n) - 1)) << (56 - n)); \
-} while (0)
+#define ror56_64(k, n) (k = (k >> n) | ((k & ((1 << n) - 1)) << (56 - n)))
/*
* Sboxes for Feistel network derived from