Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Thorsten Blum and committed by
Herbert Xu
f2e25a4c 3a31b7fd

+1 -4
+1 -4
drivers/crypto/img-hash.c
··· 629 629 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); 630 630 struct img_hash_ctx *tctx = crypto_ahash_ctx(tfm); 631 631 struct img_hash_request_ctx *ctx = ahash_request_ctx(req); 632 - int err; 633 632 634 633 spin_lock(&img_hash.lock); 635 634 if (!tctx->hdev) ··· 665 666 ctx->sgfirst = req->src; 666 667 ctx->nents = sg_nents(ctx->sg); 667 668 668 - err = img_hash_handle_queue(ctx->hdev, req); 669 - 670 - return err; 669 + return img_hash_handle_queue(ctx->hdev, req); 671 670 } 672 671 673 672 static int img_hash_cra_init(struct crypto_tfm *tfm, const char *alg_name)