diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-09-12 20:19:51 -0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-09-21 22:00:39 +0800 |
commit | c09e2cc69441ef5d99d31aa83f7d2b6239e5b9a7 (patch) | |
tree | 89bfde35e7ed3daa0792e6f23b9802816bee0fee /drivers/char/hw_random/mxc-rnga.c | |
parent | 1bf2138e9806ea436933d5a803547833f9524c8f (diff) | |
download | linux-c09e2cc69441ef5d99d31aa83f7d2b6239e5b9a7.tar.bz2 |
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 <fabio.estevam@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/hw_random/mxc-rnga.c')
-rw-r--r-- | drivers/char/hw_random/mxc-rnga.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |