Re: [PATCH] crypto: qce - drop unused scatterlist traversal in qce_ahash_update

From: Herbert Xu

Date: Sun Jul 05 2026 - 04:31:29 EST


On Sun, Jun 14, 2026 at 05:26:07PM +0200, Thorsten Blum wrote:
> Commit df12ef60c87b ("crypto: qce/sha - Do not modify scatterlist passed
> along with request") removed the only use of sg_last, rendering the
> scatterlist traversal useless. Remove it and its local variables.
>
> Also remove the redundant hash_later check, inline the source offset,
> and assign the number of complete blocks directly to req->nbytes.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> drivers/crypto/qce/sha.c | 31 +++++--------------------------
> 1 file changed, 5 insertions(+), 26 deletions(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt