projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
267c422
)
crypto: ahash - fixed style error in ahash.c
author
Joshua I. James
<joshua@cybercrimetech.com>
Fri, 5 Dec 2014 05:44:54 +0000
(14:44 +0900)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 22 Dec 2014 12:02:36 +0000
(23:02 +1100)
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>
crypto/ahash.c
patch
|
blob
|
history
diff --git
a/crypto/ahash.c
b/crypto/ahash.c
index f6a36a52d738b44251deaeaa2dd18ebee39da421..dd2890608aebaaf0ae48848c7a42a49808ca3d85 100644
(file)
--- 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;
}