hwrng: mxc-rnga - Remove uneeded initialization
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 12 Sep 2015 23:19:51 +0000 (20:19 -0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 21 Sep 2015 14:00:39 +0000 (22:00 +0800)
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>
drivers/char/hw_random/mxc-rnga.c

index 8803126c3330852013556a56bfb5a87b9330d544..c7380b80c34414eeffd199e6c13233df9a089d95 100644 (file)
@@ -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;