[PATCH] crypto: atmel - use min3 to simplify atmel_sha_append_sg
Herbert Xu
herbert at gondor.apana.org.au
Fri May 22 05:28:22 PDT 2026
On Tue, May 12, 2026 at 04:51:24PM +0200, Thorsten Blum wrote:
> Replace two consecutive min() calls with min3() to simplify the code.
>
> And since count is unsigned and cannot be less than zero, adjust the if
> check and update the comment accordingly.
>
> Signed-off-by: Thorsten Blum <thorsten.blum at linux.dev>
> ---
> drivers/crypto/atmel-sha.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
More information about the linux-arm-kernel
mailing list