projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70dec23
)
[CRYPTO] blkcipher: Use max() in blkcipher_get_spot() to state the intention
author
Ingo Oeser
<ioe-lkml@rameria.de>
Wed, 19 Sep 2007 11:11:41 +0000
(19:11 +0800)
committer
David S. Miller
<davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:55:44 +0000
(16:55 -0700)
Use max in blkcipher_get_spot() instead of open coding it.
Signed-off-by: Ingo Oeser <ioe-lkml@rameria.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/blkcipher.c
patch
|
blob
|
blame
|
history
diff --git
a/crypto/blkcipher.c
b/crypto/blkcipher.c
index 5991c53eabac8c842c6fe69e9c85270480974c4f..9c49770837c293bff73e6f0961676d082d40c684 100644
(file)
--- a/
crypto/blkcipher.c
+++ b/
crypto/blkcipher.c
@@
-65,7
+65,7
@@
static inline void blkcipher_unmap_dst(struct blkcipher_walk *walk)
static inline u8 *blkcipher_get_spot(u8 *start, unsigned int len)
{
u8 *end_page = (u8 *)(((unsigned long)(start + len - 1)) & PAGE_MASK);
- return
start > end_page ? start : end_page
;
+ return
max(start, end_page)
;
}
static inline unsigned int blkcipher_done_slow(struct crypto_blkcipher *tfm,