From: Sachin Kamat Date: Thu, 20 Feb 2014 08:53:21 +0000 (+0530) Subject: regulator: wm831x-isink: Remove redundant error message X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d718debcdb4478552a7ca26fd7e1c0d06d82b8ab;p=linux-beck.git regulator: wm831x-isink: Remove redundant error message kzalloc prints its own OOM message upon failure. Signed-off-by: Sachin Kamat Signed-off-by: Mark Brown --- 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;