summaryrefslogtreecommitdiffstats
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
commitb516d514020f17c83267f76366691e4cc9b7bddf (patch)
tree632689796e5956727a6e0255a2381ac293cd7b0c /crypto/ahash.c
parent267c4221ff574ac70ec0b02b923b16f39b54da1a (diff)
downloadop-kernel-dev-b516d514020f17c83267f76366691e4cc9b7bddf.zip
op-kernel-dev-b516d514020f17c83267f76366691e4cc9b7bddf.tar.gz
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 f6a36a5..dd28906 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;
}
OpenPOWER on IntegriCloud