summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorIngo Oeser <ioe-lkml@rameria.de>2007-09-19 19:11:41 +0800
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 16:55:44 -0700
commit0be7b28453ea29864a98a196aac1af32d8ffd846 (patch)
tree5810ea774094ec16d6e78c6e60d1ce894811f6f0 /crypto
parent69646b10d6c4dfcab5b7f49c2569e91c730fc121 (diff)
downloadlinux-crypto-0be7b28453ea29864a98a196aac1af32d8ffd846.tar.gz
linux-crypto-0be7b28453ea29864a98a196aac1af32d8ffd846.zip
[CRYPTO] blkcipher: Use max() in blkcipher_get_spot() to state the intention
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>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/blkcipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/blkcipher.c b/crypto/blkcipher.c
index 5991c53e..9c497708 100644
--- 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,