diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2014-02-20 14:23:21 +0530 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-20 21:03:16 +0900 |
commit | d718debcdb4478552a7ca26fd7e1c0d06d82b8ab (patch) | |
tree | 3f1a4e9133e1140e8c9b7e88295cdc3bb899e078 /drivers/regulator/wm831x-isink.c | |
parent | 5730aa57de68be409bfab7714e4b2d4cfa707624 (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.c | 4 |
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; |