Skip to content

Commit

Permalink
hwrng: mxc-rnga - Remove uneeded initialization
Browse files Browse the repository at this point in the history
There is no need to pre-initialize variable 'err' as this
initial value will be overwritten later on.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Fabio Estevam authored and herbertx committed Sep 21, 2015
1 parent 1bf2138 commit c09e2cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/hw_random/mxc-rnga.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static void mxc_rnga_cleanup(struct hwrng *rng)

static int __init mxc_rnga_probe(struct platform_device *pdev)
{
int err = -ENODEV;
int err;
struct resource *res;
struct mxc_rng *mxc_rng;

Expand Down

0 comments on commit c09e2cc

Please sign in to comment.