diff options
Diffstat (limited to 'crypto/algapi.c')
| -rw-r--r-- | crypto/algapi.c | 4 | 
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)  	u32 c;  	if (IS_ENABLED(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) || -	    !((unsigned long)b & (__alignof__(*b) - 1))) +	    IS_ALIGNED((unsigned long)b, __alignof__(*b)))  		for (; size >= 4; size -= 4) {  			c = be32_to_cpu(*--b) + 1;  			*b = cpu_to_be32(c); -			if (c) +			if (likely(c))  				return;  		} |