mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
70dec235d8
commit
5aaff0c8f7
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue