Skip to content

Commit

Permalink
crypto: mxs-dcp - remove set but not used variable 'fini'
Browse files Browse the repository at this point in the history
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/crypto/mxs-dcp.c: In function 'dcp_chan_thread_sha':
drivers/crypto/mxs-dcp.c:707:11: warning:
 variable 'fini' set but not used [-Wunused-but-set-variable]

It's not used since commit d80771c ("crypto: mxs-dcp - Fix wait
logic on chan threads"),so can be removed.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
YueHaibing authored and Herbert Xu committed Apr 18, 2019
1 parent 222f6b8 commit 11fe71f
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions drivers/crypto/mxs-dcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,11 +700,7 @@ static int dcp_chan_thread_sha(void *data)

struct crypto_async_request *backlog;
struct crypto_async_request *arq;

struct dcp_sha_req_ctx *rctx;

struct ahash_request *req;
int ret, fini;
int ret;

while (!kthread_should_stop()) {
set_current_state(TASK_INTERRUPTIBLE);
Expand All @@ -725,11 +721,7 @@ static int dcp_chan_thread_sha(void *data)
backlog->complete(backlog, -EINPROGRESS);

if (arq) {
req = ahash_request_cast(arq);
rctx = ahash_request_ctx(req);

ret = dcp_sha_req_to_buf(arq);
fini = rctx->fini;
arq->complete(arq, ret);
}
}
Expand Down

0 comments on commit 11fe71f

Please sign in to comment.