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:
38dbfb5
)
regulator: 88pm800: Remove redundant error message
author
Sachin Kamat
<sachin.kamat@linaro.org>
Tue, 18 Feb 2014 10:41:07 +0000
(16:11 +0530)
committer
Mark Brown
<broonie@linaro.org>
Wed, 19 Feb 2014 16:34:38 +0000
(
01:34
+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/88pm800.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/88pm800.c
b/drivers/regulator/88pm800.c
index d333f7eac106f1ae9cab88f0850f2fc4ca03c19f..7a721d67e6aca8ce8425ebc0e29477009fbe9c6c 100644
(file)
--- a/
drivers/regulator/88pm800.c
+++ b/
drivers/regulator/88pm800.c
@@
-310,10
+310,8
@@
static int pm800_regulator_probe(struct platform_device *pdev)
pm800_data = devm_kzalloc(&pdev->dev, sizeof(*pm800_data),
GFP_KERNEL);
- if (!pm800_data) {
- dev_err(&pdev->dev, "Failed to allocate pm800_regualtors");
+ if (!pm800_data)
return -ENOMEM;
- }
pm800_data->map = chip->subchip->regmap_power;
pm800_data->chip = chip;