From: Thorsten Blum Date: Sat, 28 Mar 2026 10:20:46 +0000 (+0100) Subject: crypto: img-hash - drop redundant return variable X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2e25a4cf57d1d24a6920d9cb0f2bcf2b434bd8c;p=thirdparty%2Flinux.git 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/img-hash.c b/drivers/crypto/img-hash.c index f2d00b1d6b24a..c0467185ee428 100644 --- a/drivers/crypto/img-hash.c +++ b/drivers/crypto/img-hash.c @@ -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)