[PATCH v2 09/30] crypto: sa2ul - remove redundant sa_sha_digest() wrapper

From: Manorit Chawdhry

Date: Wed Nov 04 2026 - 00:50:13 EST


sa_sha_digest() only calls sa_sha_run(). Use sa_sha_run() directly.

Signed-off-by: Manorit Chawdhry <m-chawdhry@xxxxxx>
---
drivers/crypto/sa2ul.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/drivers/crypto/sa2ul.c b/drivers/crypto/sa2ul.c
index 2936f411454a..8088eca84129 100644
--- a/drivers/crypto/sa2ul.c
+++ b/drivers/crypto/sa2ul.c
@@ -1413,11 +1413,6 @@ static int sa_sha_cra_init_alg(struct crypto_tfm *tfm, const char *alg_base)
return 0;
}

-static int sa_sha_digest(struct ahash_request *req)
-{
- return sa_sha_run(req);
-}
-
static int sa_sha_init(struct ahash_request *req)
{
struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
@@ -1930,7 +1925,7 @@ static struct sa_alg_tmpl sa_algs[] = {
.update = sa_sha_update,
.final = sa_sha_final,
.finup = sa_sha_finup,
- .digest = sa_sha_digest,
+ .digest = sa_sha_run,
.export = sa_sha_export,
.import = sa_sha_import,
},
@@ -1959,7 +1954,7 @@ static struct sa_alg_tmpl sa_algs[] = {
.update = sa_sha_update,
.final = sa_sha_final,
.finup = sa_sha_finup,
- .digest = sa_sha_digest,
+ .digest = sa_sha_run,
.export = sa_sha_export,
.import = sa_sha_import,
},
@@ -1988,7 +1983,7 @@ static struct sa_alg_tmpl sa_algs[] = {
.update = sa_sha_update,
.final = sa_sha_final,
.finup = sa_sha_finup,
- .digest = sa_sha_digest,
+ .digest = sa_sha_run,
.export = sa_sha_export,
.import = sa_sha_import,
},

--
2.43.0