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:
eecb02c
)
regulator: as3711: Remove redundant error message
author
Sachin Kamat
<sachin.kamat@linaro.org>
Tue, 18 Feb 2014 10:41:11 +0000
(16:11 +0530)
committer
Mark Brown
<broonie@linaro.org>
Wed, 19 Feb 2014 16:38:41 +0000
(
01:38
+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/as3711-regulator.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/as3711-regulator.c
b/drivers/regulator/as3711-regulator.c
index 856c55f3a83202349410633c9c670ced9edb2e7c..b47283f91e2db940974b48c0103c9a5207b462af 100644
(file)
--- a/
drivers/regulator/as3711-regulator.c
+++ b/
drivers/regulator/as3711-regulator.c
@@
-245,10
+245,8
@@
static int as3711_regulator_probe(struct platform_device *pdev)
regs = devm_kzalloc(&pdev->dev, AS3711_REGULATOR_NUM *
sizeof(struct as3711_regulator), GFP_KERNEL);
- if (!regs) {
- dev_err(&pdev->dev, "Memory allocation failed exiting..\n");
+ if (!regs)
return -ENOMEM;
- }
for (id = 0, ri = as3711_reg_info; id < AS3711_REGULATOR_NUM; ++id, ri++) {
reg = ®s[id];