Skip to content

Commit 055be68

Browse files
ayushsawldavem330
authored andcommitted
Crypto/chcr: Fixes a coccinile check error
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 567be3a ("crypto: chelsio - Use multiple txq/rxq per tfm to process the requests"). Fixes: 567be3a ("crypto: chelsio - Use multiple txq/rxq per tfm to process the requests"). V1->V2 -Modified subject. Signed-off-by: Ayush Sawal <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f3b140a commit 055be68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/crypto/chelsio/chcr_algo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,6 +1464,7 @@ static int chcr_device_init(struct chcr_context *ctx)
14641464
if (!ctx->dev) {
14651465
u_ctx = assign_chcr_device();
14661466
if (!u_ctx) {
1467+
err = -ENXIO;
14671468
pr_err("chcr device assignment fails\n");
14681469
goto out;
14691470
}

0 commit comments

Comments
 (0)