diff options
Diffstat (limited to 'crypto/blkcipher.c')
-rw-r--r-- | crypto/blkcipher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/blkcipher.c b/crypto/blkcipher.c index 5991c53eabac..9c49770837c2 100644 --- a/crypto/blkcipher.c +++ b/crypto/blkcipher.c | |||
@@ -65,7 +65,7 @@ static inline void blkcipher_unmap_dst(struct blkcipher_walk *walk) | |||
65 | static inline u8 *blkcipher_get_spot(u8 *start, unsigned int len) | 65 | static inline u8 *blkcipher_get_spot(u8 *start, unsigned int len) |
66 | { | 66 | { |
67 | u8 *end_page = (u8 *)(((unsigned long)(start + len - 1)) & PAGE_MASK); | 67 | u8 *end_page = (u8 *)(((unsigned long)(start + len - 1)) & PAGE_MASK); |
68 | return start > end_page ? start : end_page; | 68 | return max(start, end_page); |
69 | } | 69 | } |
70 | 70 | ||
71 | static inline unsigned int blkcipher_done_slow(struct crypto_blkcipher *tfm, | 71 | static inline unsigned int blkcipher_done_slow(struct crypto_blkcipher *tfm, |