mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
crypto: img-hash - drop redundant return variable
In img_hash_digest(), remove the redundant return variable 'err' and return img_hash_handle_queue() directly. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
3a31b7fda6
commit
f2e25a4cf5
|
|
@ -629,7 +629,6 @@ static int img_hash_digest(struct ahash_request *req)
|
|||
struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
|
||||
struct img_hash_ctx *tctx = crypto_ahash_ctx(tfm);
|
||||
struct img_hash_request_ctx *ctx = ahash_request_ctx(req);
|
||||
int err;
|
||||
|
||||
spin_lock(&img_hash.lock);
|
||||
if (!tctx->hdev)
|
||||
|
|
@ -666,9 +665,7 @@ static int img_hash_digest(struct ahash_request *req)
|
|||
ctx->sgfirst = req->src;
|
||||
ctx->nents = sg_nents(ctx->sg);
|
||||
|
||||
err = img_hash_handle_queue(ctx->hdev, req);
|
||||
|
||||
return err;
|
||||
return img_hash_handle_queue(ctx->hdev, req);
|
||||
}
|
||||
|
||||
static int img_hash_cra_init(struct crypto_tfm *tfm, const char *alg_name)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user