提交 745952ae 编写于 作者: C Colin Ian King 提交者: Herbert Xu

crypto: ccp - remove unused variable qim

Variable qim is assigned but never read, it is redundant and can
be removed.

Cleans up clang warning: Value stored to 'qim' is never read

Fixes: 4b394a23 ("crypto: ccp - Let a v5 CCP provide the same function as v3")
Signed-off-by: NColin Ian King <colin.king@canonical.com>
Acked-by: NGary R Hook <gary.hook@amd.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 2f1fedca
...@@ -788,13 +788,12 @@ static int ccp5_init(struct ccp_device *ccp) ...@@ -788,13 +788,12 @@ static int ccp5_init(struct ccp_device *ccp)
struct ccp_cmd_queue *cmd_q; struct ccp_cmd_queue *cmd_q;
struct dma_pool *dma_pool; struct dma_pool *dma_pool;
char dma_pool_name[MAX_DMAPOOL_NAME_LEN]; char dma_pool_name[MAX_DMAPOOL_NAME_LEN];
unsigned int qmr, qim, i; unsigned int qmr, i;
u64 status; u64 status;
u32 status_lo, status_hi; u32 status_lo, status_hi;
int ret; int ret;
/* Find available queues */ /* Find available queues */
qim = 0;
qmr = ioread32(ccp->io_regs + Q_MASK_REG); qmr = ioread32(ccp->io_regs + Q_MASK_REG);
for (i = 0; i < MAX_HW_QUEUES; i++) { for (i = 0; i < MAX_HW_QUEUES; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册