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: arizona-ldo1: Remove redundant error message
author
Sachin Kamat
<sachin.kamat@linaro.org>
Tue, 18 Feb 2014 10:41:09 +0000
(16:11 +0530)
committer
Mark Brown
<broonie@linaro.org>
Wed, 19 Feb 2014 16:37:59 +0000
(
01:37
+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/arizona-ldo1.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/arizona-ldo1.c
b/drivers/regulator/arizona-ldo1.c
index 4f6c2055f6b210436a5c1a9565b9f302ecdd21da..d8e7db696d5a1efcc01a3bf4503f1a1d588ae4c1 100644
(file)
--- a/
drivers/regulator/arizona-ldo1.c
+++ b/
drivers/regulator/arizona-ldo1.c
@@
-189,10
+189,8
@@
static int arizona_ldo1_probe(struct platform_device *pdev)
int ret;
ldo1 = devm_kzalloc(&pdev->dev, sizeof(*ldo1), GFP_KERNEL);
- if (ldo1 == NULL) {
- dev_err(&pdev->dev, "Unable to allocate private data\n");
+ if (!ldo1)
return -ENOMEM;
- }
ldo1->arizona = arizona;