]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
Crypto/chcr: Fixes a coccinile check error
authorAyush Sawal <ayush.sawal@chelsio.com>
Mon, 1 Jun 2020 17:41:59 +0000 (23:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jun 2020 07:32:27 +0000 (09:32 +0200)
[ Upstream commit 055be6865dea6743b090d1c55c8d21a5e01df201 ]

This fixes an error observed after running coccinile check.
drivers/crypto/chelsio/chcr_algo.c:1462:5-8: Unneeded variable:
"err". Return "0" on line 1480

This line is missed in the commit 567be3a5d227 ("crypto:
chelsio - Use multiple txq/rxq per tfm to process the requests").

Fixes: 567be3a5d227 ("crypto:
chelsio - Use multiple txq/rxq per tfm to process the requests").

V1->V2
-Modified subject.

Signed-off-by: Ayush Sawal <ayush.sawal@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/chelsio/chcr_algo.c

index c29b80dd30d86c5a332654fdb6f5748883d497a8..5a2d9ee9348dd6940a363955ba67b49b6b06c4ba 100644 (file)
@@ -1443,6 +1443,7 @@ static int chcr_device_init(struct chcr_context *ctx)
        if (!ctx->dev) {
                u_ctx = assign_chcr_device();
                if (!u_ctx) {
+                       err = -ENXIO;
                        pr_err("chcr device assignment fails\n");
                        goto out;
                }