summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChenghai Huang <huangchenghai2@huawei.com>2026-07-18 11:05:13 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2026-07-27 10:29:27 +1000
commita7e2dfb7dafc8fb750b7ba0caec59043f5b73e00 (patch)
tree094664004bba046fa6b6c9fc07ef6461161a3563
parent67ca4ac78f37b91bffab1c30a0c8afca024eecf4 (diff)
downloadlinux-next-a7e2dfb7dafc8fb750b7ba0caec59043f5b73e00.tar.gz
linux-next-a7e2dfb7dafc8fb750b7ba0caec59043f5b73e00.zip
crypto: hisilicon/sec2 - remove unused sec_ctx.hlf_q_num
hlf_q_num is set but never read; drop the field and its assignment. Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/hisilicon/sec2/sec.h3
-rw-r--r--drivers/crypto/hisilicon/sec2/sec_crypto.c1
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/crypto/hisilicon/sec2/sec.h b/drivers/crypto/hisilicon/sec2/sec.h
index adf95795dffe..c12a39a8a9d4 100644
--- a/drivers/crypto/hisilicon/sec2/sec.h
+++ b/drivers/crypto/hisilicon/sec2/sec.h
@@ -181,9 +181,6 @@ struct sec_ctx {
const struct sec_req_op *req_op;
struct hisi_qp **qps;
- /* Half queues for encipher, and half for decipher */
- u32 hlf_q_num;
-
/* Current cyclic index to select a queue for encipher */
atomic_t enc_qcyclic;
diff --git a/drivers/crypto/hisilicon/sec2/sec_crypto.c b/drivers/crypto/hisilicon/sec2/sec_crypto.c
index 5c2b9f710be0..01eb76f616fc 100644
--- a/drivers/crypto/hisilicon/sec2/sec_crypto.c
+++ b/drivers/crypto/hisilicon/sec2/sec_crypto.c
@@ -669,7 +669,6 @@ static int sec_ctx_base_init(struct sec_ctx *ctx)
sec = container_of(ctx->qps[0]->qm, struct sec_dev, qm);
ctx->sec = sec;
ctx->dev = &sec->qm.pdev->dev;
- ctx->hlf_q_num = sec->ctx_q_num >> 1;
ctx->pbuf_supported = ctx->sec->iommu_used;
if (sec->qm.ver < QM_HW_V3)