From: Fabio Estevam Date: Sat, 12 Sep 2015 23:19:51 +0000 (-0300) Subject: hwrng: mxc-rnga - Remove uneeded initialization X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c09e2cc69441ef5d99d31aa83f7d2b6239e5b9a7;p=linux-beck.git hwrng: mxc-rnga - Remove uneeded initialization There is no need to pre-initialize variable 'err' as this initial value will be overwritten later on. Signed-off-by: Fabio Estevam Signed-off-by: Herbert Xu --- diff --git a/drivers/char/hw_random/mxc-rnga.c b/drivers/char/hw_random/mxc-rnga.c index 8803126c3330..c7380b80c344 100644 --- a/drivers/char/hw_random/mxc-rnga.c +++ b/drivers/char/hw_random/mxc-rnga.c @@ -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;