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:
5730aa5
)
regulator: wm831x-isink: Remove redundant error message
author
Sachin Kamat
<sachin.kamat@linaro.org>
Thu, 20 Feb 2014 08:53:21 +0000
(14:23 +0530)
committer
Mark Brown
<broonie@linaro.org>
Thu, 20 Feb 2014 12:03:16 +0000
(21:03 +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/wm831x-isink.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/regulator/wm831x-isink.c
b/drivers/regulator/wm831x-isink.c
index 0339b886df5dbf2a6bde26111a0a4c6a60f58732..72e385e76a9d75df7146e0bb42589d32c034f28b 100644
(file)
--- a/
drivers/regulator/wm831x-isink.c
+++ b/
drivers/regulator/wm831x-isink.c
@@
-165,10
+165,8
@@
static int wm831x_isink_probe(struct platform_device *pdev)
isink = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_isink),
GFP_KERNEL);
- if (isink == NULL) {
- dev_err(&pdev->dev, "Unable to allocate private data\n");
+ if (!isink)
return -ENOMEM;
- }
isink->wm831x = wm831x;