Skip to content

Commit

Permalink
[CRYPTO] blkcipher: Use max() in blkcipher_get_spot() to state the in…
Browse files Browse the repository at this point in the history
…tention

Use max in blkcipher_get_spot() instead of open coding it.

Signed-off-by: Ingo Oeser <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
Ingo Oeser authored and David S. Miller committed Oct 10, 2007
1 parent 70dec23 commit 5aaff0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/blkcipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5aaff0c

Please sign in to comment.