summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRahul Pathak <rpathak@visteon.com>2015-12-14 08:44:19 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2015-12-17 16:42:13 +0800
commit871b88a8419c8606ad2ebf752cf414c7627cad1a (patch)
treeb9c9a335886c0998fce2b8e7ee6fe77ad43ad778
parent6333ed8f26cf77311088d2e2b7cf16d8480bcbb2 (diff)
downloadtalos-op-linux-871b88a8419c8606ad2ebf752cf414c7627cad1a.tar.gz
talos-op-linux-871b88a8419c8606ad2ebf752cf414c7627cad1a.zip
crypto: atmel-sha - Removed unused variable "err"
Removed unused variable "err" and directly return "0" Reported by coccicheck - ./drivers/crypto/atmel-sha.c:758:5-8: Unneeded variable: "err". Return "0" on line 766 Signed-off-by: Rahul Pathak <rpathak@visteon.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/atmel-sha.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/atmel-sha.c b/drivers/crypto/atmel-sha.c
index 660d8c06540b..20de861aa0ea 100644
--- a/drivers/crypto/atmel-sha.c
+++ b/drivers/crypto/atmel-sha.c
@@ -755,7 +755,6 @@ static int atmel_sha_finish(struct ahash_request *req)
{
struct atmel_sha_reqctx *ctx = ahash_request_ctx(req);
struct atmel_sha_dev *dd = ctx->dd;
- int err = 0;
if (ctx->digcnt[0] || ctx->digcnt[1])
atmel_sha_copy_ready_hash(req);
@@ -763,7 +762,7 @@ static int atmel_sha_finish(struct ahash_request *req)
dev_dbg(dd->dev, "digcnt: 0x%llx 0x%llx, bufcnt: %d\n", ctx->digcnt[1],
ctx->digcnt[0], ctx->bufcnt);
- return err;
+ return 0;
}
static void atmel_sha_finish_req(struct ahash_request *req, int err)
OpenPOWER on IntegriCloud