summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/caam
diff options
context:
space:
mode:
authorHoria Geantă2017-07-10 07:40:38 +0200
committerHerbert Xu2017-07-18 12:16:07 +0200
commitf366af462aef1dcaeab0f68b031e5c4c4eb860e1 (patch)
tree80ed4df2c2790783afc370cbfc40218352b960b0 /drivers/crypto/caam
parentcrypto: caam - remove unused variables in caam_drv_private (diff)
downloadkernel-qcow2-linux-f366af462aef1dcaeab0f68b031e5c4c4eb860e1.tar.gz
kernel-qcow2-linux-f366af462aef1dcaeab0f68b031e5c4c4eb860e1.tar.xz
kernel-qcow2-linux-f366af462aef1dcaeab0f68b031e5c4c4eb860e1.zip
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>
Diffstat (limited to 'drivers/crypto/caam')
-rw-r--r--drivers/crypto/caam/caamrng.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/crypto/caam/caamrng.c b/drivers/crypto/caam/caamrng.c
index 41398da3edf4..fde07d4ff019 100644
--- a/drivers/crypto/caam/caamrng.c
+++ b/drivers/crypto/caam/caamrng.c
@@ -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 = {