projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f24bf7
)
regulator: rc5t583: Remove redundant error message
author
Sachin Kamat
<sachin.kamat@linaro.org>
Thu, 20 Feb 2014 08:53:10 +0000
(14:23 +0530)
committer
Mark Brown
<broonie@linaro.org>
Thu, 20 Feb 2014 11:26:05 +0000
(20:26 +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/rc5t583-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/rc5t583-regulator.c
b/drivers/regulator/rc5t583-regulator.c
index 22d6fd1281b1e4cf44b474decbe2eee6cc9f26eb..4c414ae109ae5eb6edc44094e0c608a325a9cb63 100644
(file)
--- a/
drivers/regulator/rc5t583-regulator.c
+++ b/
drivers/regulator/rc5t583-regulator.c
@@
-134,10
+134,8
@@
static int rc5t583_regulator_probe(struct platform_device *pdev)
regs = devm_kzalloc(&pdev->dev, RC5T583_REGULATOR_MAX *
sizeof(struct rc5t583_regulator), GFP_KERNEL);
- if (!regs) {
- dev_err(&pdev->dev, "Memory allocation failed exiting..\n");
+ if (!regs)
return -ENOMEM;
- }
for (id = 0; id < RC5T583_REGULATOR_MAX; ++id) {