summaryrefslogtreecommitdiff
path: root/drivers/regulator/wm831x-isink.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-20 12:53:21 +0400
committerMark Brown <broonie@linaro.org>2014-02-20 16:03:16 +0400
commitd718debcdb4478552a7ca26fd7e1c0d06d82b8ab (patch)
tree3f1a4e9133e1140e8c9b7e88295cdc3bb899e078 /drivers/regulator/wm831x-isink.c
parent5730aa57de68be409bfab7714e4b2d4cfa707624 (diff)
downloadlinux-d718debcdb4478552a7ca26fd7e1c0d06d82b8ab.tar.xz
regulator: wm831x-isink: Remove redundant error message
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>
Diffstat (limited to 'drivers/regulator/wm831x-isink.c')
-rw-r--r--drivers/regulator/wm831x-isink.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/regulator/wm831x-isink.c b/drivers/regulator/wm831x-isink.c
index 0339b886df5d..72e385e76a9d 100644
--- 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;