Skip to content

Commit f366af4

Browse files
horiagherbertx
authored andcommitted
crypto: caam - clean-up in caam_init_rng()
Clean up the code, as indicated by Coccinelle. Cc: Julia Lawall <[email protected]> Signed-off-by: Horia Geantă <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 60a3f73 commit f366af4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/crypto/caam/caamrng.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,7 @@ static int caam_init_rng(struct caam_rng_ctx *ctx, struct device *jrdev)
285285
if (err)
286286
return err;
287287

288-
err = caam_init_buf(ctx, 1);
289-
if (err)
290-
return err;
291-
292-
return 0;
288+
return caam_init_buf(ctx, 1);
293289
}
294290

295291
static struct hwrng caam_rng = {

0 commit comments

Comments
 (0)