[PATCH 05/30] crypto: sa2ul - remove unused fields from sa_tfm_ctx

From: Manorit Chawdhry

Date: Tue Sep 15 2026 - 06:05:10 EST


Dead assignment. Remove it.

Assisted-by: Sisyphus:claude-sonnet-4-6
Signed-off-by: Manorit Chawdhry <m-chawdhry@xxxxxx>
---
drivers/crypto/sa2ul.c | 2 --
drivers/crypto/sa2ul.h | 2 --
2 files changed, 4 deletions(-)

diff --git a/drivers/crypto/sa2ul.c b/drivers/crypto/sa2ul.c
index e49cb741074f..b36437d76891 100644
--- a/drivers/crypto/sa2ul.c
+++ b/drivers/crypto/sa2ul.c
@@ -1406,7 +1406,6 @@ static int sa_sha_run(struct ahash_request *req)

static int sa_sha_setup(struct sa_tfm_ctx *ctx, struct algo_data *ad)
{
- int bs = crypto_shash_blocksize(ctx->shash);
int cmdl_len;
struct sa_cmdl_cfg cfg;

@@ -1414,7 +1413,6 @@ static int sa_sha_setup(struct sa_tfm_ctx *ctx, struct algo_data *ad)
ad->auth_eng.eng_id = SA_ENG_ID_AM1;
ad->auth_eng.sc_size = SA_CTX_AUTH_TYPE2_SZ;

- memset(ctx->authkey, 0, bs);
memset(&cfg, 0, sizeof(cfg));
cfg.enc_eng_id = ad->enc_eng.eng_id;
cfg.auth_eng_id = ad->auth_eng.eng_id;
diff --git a/drivers/crypto/sa2ul.h b/drivers/crypto/sa2ul.h
index 097a496067e1..f29e0b9ac82f 100644
--- a/drivers/crypto/sa2ul.h
+++ b/drivers/crypto/sa2ul.h
@@ -293,8 +293,6 @@ struct sa_tfm_ctx {
struct sa_ctx_info dec;
int keylen;
int iv_idx;
- u32 key[AES_KEYSIZE_256 / sizeof(u32)];
- u8 authkey[SHA512_BLOCK_SIZE];
struct crypto_shash *shash;
/* for fallback */
union {

--
2.43.0