diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-04 23:52:03 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-16 19:28:44 -0400 |
commit | cab87f062d0c57c9734257e4079ced489a3189b1 (patch) | |
tree | c8229c08b3a7caacfdf285f4d407664bc749ac87 | |
parent | 42141f22e32a452b02b3dc8764d93223505e1c10 (diff) |
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>
-rw-r--r-- | drivers/regulator/max77686.c | 1 | ||||
-rw-r--r-- | drivers/regulator/max77693.c | 1 | ||||
-rw-r--r-- | drivers/regulator/max8997.c | 1 |
3 files changed, 0 insertions, 3 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) | |||
483 | if (IS_ERR(max77686->rdev[i])) { | 483 | if (IS_ERR(max77686->rdev[i])) { |
484 | dev_err(&pdev->dev, | 484 | dev_err(&pdev->dev, |
485 | "regulator init failed for %d\n", i); | 485 | "regulator init failed for %d\n", i); |
486 | max77686->rdev[i] = NULL; | ||
487 | return PTR_ERR(max77686->rdev[i]); | 486 | return PTR_ERR(max77686->rdev[i]); |
488 | } | 487 | } |
489 | } | 488 | } |
diff --git a/drivers/regulator/max77693.c b/drivers/regulator/max77693.c index 2054ae1c496e..feb20bf4ccab 100644 --- a/drivers/regulator/max77693.c +++ b/drivers/regulator/max77693.c | |||
@@ -271,7 +271,6 @@ static int max77693_pmic_probe(struct platform_device *pdev) | |||
271 | if (IS_ERR(max77693_pmic->rdev[i])) { | 271 | if (IS_ERR(max77693_pmic->rdev[i])) { |
272 | dev_err(max77693_pmic->dev, | 272 | dev_err(max77693_pmic->dev, |
273 | "Failed to initialize regulator-%d\n", id); | 273 | "Failed to initialize regulator-%d\n", id); |
274 | max77693_pmic->rdev[i] = NULL; | ||
275 | return PTR_ERR(max77693_pmic->rdev[i]); | 274 | return PTR_ERR(max77693_pmic->rdev[i]); |
276 | } | 275 | } |
277 | } | 276 | } |
diff --git a/drivers/regulator/max8997.c b/drivers/regulator/max8997.c index 059e8ed7fa24..bcd2488d1252 100644 --- a/drivers/regulator/max8997.c +++ b/drivers/regulator/max8997.c | |||
@@ -1209,7 +1209,6 @@ static int max8997_pmic_probe(struct platform_device *pdev) | |||
1209 | if (IS_ERR(rdev[i])) { | 1209 | if (IS_ERR(rdev[i])) { |
1210 | dev_err(max8997->dev, "regulator init failed for %d\n", | 1210 | dev_err(max8997->dev, "regulator init failed for %d\n", |
1211 | id); | 1211 | id); |
1212 | rdev[i] = NULL; | ||
1213 | return PTR_ERR(rdev[i]); | 1212 | return PTR_ERR(rdev[i]); |
1214 | } | 1213 | } |
1215 | } | 1214 | } |