Skip to content

Commit

Permalink
crypto: caam - clean-up in caam_init_rng()
Browse files Browse the repository at this point in the history
Clean up the code, as indicated by Coccinelle.

Cc: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Horia Geantă authored and Herbert Xu committed Jul 18, 2017
1 parent 60a3f73 commit f366af4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/crypto/caam/caamrng.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,7 @@ static int caam_init_rng(struct caam_rng_ctx *ctx, struct device *jrdev)
if (err)
return err;

err = caam_init_buf(ctx, 1);
if (err)
return err;

return 0;
return caam_init_buf(ctx, 1);
}

static struct hwrng caam_rng = {
Expand Down

0 comments on commit f366af4

Please sign in to comment.