projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a7963d
)
regulator: da9063: Remove redundant error message
author
Sachin Kamat
<sachin.kamat@linaro.org>
Thu, 20 Feb 2014 08:53:01 +0000
(14:23 +0530)
committer
Mark Brown
<broonie@linaro.org>
Thu, 20 Feb 2014 10:57:19 +0000
(19:57 +0900)
kzalloc prints its own OOM message upon failure.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/da9063-regulator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/da9063-regulator.c
b/drivers/regulator/da9063-regulator.c
index 3c65644f3007b862c51c30d374e042767db0f86d..4c09f759d05d3e99baffd82a0076618330ba590e 100644
(file)
--- a/
drivers/regulator/da9063-regulator.c
+++ b/
drivers/regulator/da9063-regulator.c
@@
-774,10
+774,8
@@
static int da9063_regulator_probe(struct platform_device *pdev)
size = sizeof(struct da9063_regulators) +
n_regulators * sizeof(struct da9063_regulator);
regulators = devm_kzalloc(&pdev->dev, size, GFP_KERNEL);
- if (!regulators) {
- dev_err(&pdev->dev, "No memory for regulators\n");
+ if (!regulators)
return -ENOMEM;
- }
regulators->n_regulators = n_regulators;
platform_set_drvdata(pdev, regulators);