From: Joshua I. James Date: Fri, 5 Dec 2014 05:44:54 +0000 (+0900) Subject: crypto: ahash - fixed style error in ahash.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b516d514020f17c83267f76366691e4cc9b7bddf;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git crypto: ahash - fixed style error in ahash.c Fixed style error identified by checkpatch. WARNING: Missing a blank line after declarations + unsigned int unaligned = alignmask + 1 - (offset & alignmask); + if (nbytes > unaligned) Signed-off-by: Joshua I. James Signed-off-by: Herbert Xu --- diff --git a/crypto/ahash.c b/crypto/ahash.c index f6a36a52d738..dd2890608aeb 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c @@ -55,6 +55,7 @@ static int hash_walk_next(struct crypto_hash_walk *walk) if (offset & alignmask) { unsigned int unaligned = alignmask + 1 - (offset & alignmask); + if (nbytes > unaligned) nbytes = unaligned; }