summaryrefslogtreecommitdiff
path: root/crypto/ahash.c
diff options
context:
space:
mode:
authorJoshua I. James <joshua@cybercrimetech.com>2014-12-05 14:44:54 +0900
committerHerbert Xu <herbert@gondor.apana.org.au>2014-12-22 23:02:36 +1100
commit509979eda037e8973364894dacccca3da9f162ed (patch)
tree8fc116bddf60d6e909b5f4850242392bdd4464cf /crypto/ahash.c
parent3cd5b0be5ef0c2ad595549465c7db7ce638b2a12 (diff)
downloadlinux-crypto-509979eda037e8973364894dacccca3da9f162ed.tar.gz
linux-crypto-509979eda037e8973364894dacccca3da9f162ed.zip
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 <joshua@cybercrimetech.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ahash.c')
-rw-r--r--crypto/ahash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/ahash.c b/crypto/ahash.c
index f6a36a52..dd289060 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;
}