Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f366af46 authored by Horia Geantă's avatar Horia Geantă Committed by Herbert Xu
Browse files

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: default avatarHoria Geantă <horia.geanta@nxp.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 60a3f737
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -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 = {