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>
This commit is contained in:
Chenghai Huang
2026-07-27 10:29:27 +10:00
committed by Herbert Xu
parent 67ca4ac78f
commit a7e2dfb7da
2 changed files with 0 additions and 4 deletions
-3
View File
@@ -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;
@@ -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)