瀏覽代碼

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>
Fabio Estevam 10 年之前
父節點
當前提交
c09e2cc694
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/char/hw_random/mxc-rnga.c

+ 1 - 1
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;