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:
f4a6c5b
)
regulator: arizona-micsupp: Remove redundant error message
author
Sachin Kamat
<sachin.kamat@linaro.org>
Tue, 18 Feb 2014 10:41:10 +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-micsupp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/arizona-micsupp.c
b/drivers/regulator/arizona-micsupp.c
index 034ece7070838991a59d45f88f0e0ace95c6abba..6fdd9bf6927fcb39763156d34d2747c34ff2ebee 100644
(file)
--- a/
drivers/regulator/arizona-micsupp.c
+++ b/
drivers/regulator/arizona-micsupp.c
@@
-204,10
+204,8
@@
static int arizona_micsupp_probe(struct platform_device *pdev)
int ret;
micsupp = devm_kzalloc(&pdev->dev, sizeof(*micsupp), GFP_KERNEL);
- if (micsupp == NULL) {
- dev_err(&pdev->dev, "Unable to allocate private data\n");
+ if (!micsupp)
return -ENOMEM;
- }
micsupp->arizona = arizona;
INIT_WORK(&micsupp->check_cp_work, arizona_micsupp_check_cp);