aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/wm831x-isink.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-20 03:53:21 -0500
committerMark Brown <broonie@linaro.org>2014-02-20 07:03:16 -0500
commitd718debcdb4478552a7ca26fd7e1c0d06d82b8ab (patch)
tree3f1a4e9133e1140e8c9b7e88295cdc3bb899e078 /drivers/regulator/wm831x-isink.c
parent5730aa57de68be409bfab7714e4b2d4cfa707624 (diff)
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)
165 165
166 isink = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_isink), 166 isink = devm_kzalloc(&pdev->dev, sizeof(struct wm831x_isink),
167 GFP_KERNEL); 167 GFP_KERNEL);
168 if (isink == NULL) { 168 if (!isink)
169 dev_err(&pdev->dev, "Unable to allocate private data\n");
170 return -ENOMEM; 169 return -ENOMEM;
171 }
172 170
173 isink->wm831x = wm831x; 171 isink->wm831x = wm831x;
174 172