]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2020 22:50:26 +0000 (15:50 -0700)
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 73274d6a0f5e ("crypto:
chelsio - Use multiple txq/rxq per tfm to process the requests").

Fixes: 73274d6a0f5e ("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>
drivers/crypto/chelsio/chcr_algo.c

index 94cf04e5aacf90ae1924334acf35e4de8c814f2c..2080b2ec6639dfa2556f50bf64d75808fd520ce8 100644 (file)
@@ -1464,6 +1464,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;
                }