aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/algapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/algapi.c')
-rw-r--r--crypto/algapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c
index 6b52e8f0b95f..9eed4ef9c971 100644
--- a/crypto/algapi.c
+++ b/crypto/algapi.c
@@ -963,11 +963,11 @@ void crypto_inc(u8 *a, unsigned int size)
963 u32 c; 963 u32 c;
964 964
965 if (IS_ENABLED(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) || 965 if (IS_ENABLED(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) ||
966 !((unsigned long)b & (__alignof__(*b) - 1))) 966 IS_ALIGNED((unsigned long)b, __alignof__(*b)))
967 for (; size >= 4; size -= 4) { 967 for (; size >= 4; size -= 4) {
968 c = be32_to_cpu(*--b) + 1; 968 c = be32_to_cpu(*--b) + 1;
969 *b = cpu_to_be32(c); 969 *b = cpu_to_be32(c);
970 if (c) 970 if (likely(c))
971 return; 971 return;
972 } 972 }
973 973