Re: [PATCH] lib/crypto: x86/sha512: Remove unnecessary checks for nblocks==0
From: Eric Biggers
Date: Mon Jun 23 2025 - 22:46:23 EST
On Fri, Jun 20, 2025 at 07:15:49PM -0700, Eric Biggers wrote:
> Since sha512_blocks() is called only with nblocks >= 1, remove
> unnecessary checks for nblocks == 0 from the x86 SHA-512 assembly code.
>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> ---
> lib/crypto/x86/sha512-avx-asm.S | 6 +-----
> lib/crypto/x86/sha512-avx2-asm.S | 5 +----
> lib/crypto/x86/sha512-ssse3-asm.S | 6 +-----
> 3 files changed, 3 insertions(+), 14 deletions(-)
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-next
- Eric