|
@@ -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)
|