summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/max77686.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-05 05:52:03 +0200
committerMark Brown <broonie@linaro.org>2013-09-17 01:28:44 +0200
commitcab87f062d0c57c9734257e4079ced489a3189b1 (patch)
treec8229c08b3a7caacfdf285f4d407664bc749ac87 /drivers/regulator/max77686.c
parentregulator: core: Fix a trivial typo (diff)
downloadlinux-cab87f062d0c57c9734257e4079ced489a3189b1.tar.xz
linux-cab87f062d0c57c9734257e4079ced489a3189b1.zip
regulator: Remove redundant NULL assignment
NULL assignment corrupts the error pointer and is not necessary. Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/max77686.c')
-rw-r--r--drivers/regulator/max77686.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/regulator/max77686.c b/drivers/regulator/max77686.c
index de5b30ea823c..ae001ccf26f4 100644
--- a/drivers/regulator/max77686.c
+++ b/drivers/regulator/max77686.c
@@ -483,7 +483,6 @@ static int max77686_pmic_probe(struct platform_device *pdev)
if (IS_ERR(max77686->rdev[i])) {
dev_err(&pdev->dev,
"regulator init failed for %d\n", i);
- max77686->rdev[i] = NULL;
return PTR_ERR(max77686->rdev[i]);
}
}