crypto: caam - clean-up in caam_init_rng()

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>
This commit is contained in:
Horia Geantă 2017-07-10 08:40:38 +03:00 committed by Herbert Xu
parent 60a3f737ba
commit f366af462a
1 changed files with 1 additions and 5 deletions

View File

@ -285,11 +285,7 @@ static int caam_init_rng(struct caam_rng_ctx *ctx, struct device *jrdev)
if (err) if (err)
return err; return err;
err = caam_init_buf(ctx, 1); return caam_init_buf(ctx, 1);
if (err)
return err;
return 0;
} }
static struct hwrng caam_rng = { static struct hwrng caam_rng = {