Re: [PATCH] crypto: qce - drop unused scatterlist traversal in qce_ahash_update
From: Bartosz Golaszewski
Date: Tue Jun 16 2026 - 03:49:21 EST
On Sun, 14 Jun 2026 17:26:07 +0200, Thorsten Blum
<thorsten.blum@xxxxxxxxx> said:
> 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>
> ---
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>