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>
This commit is contained in:
Sachin Kamat 2014-02-20 14:23:21 +05:30 committed by Mark Brown
parent 5730aa57de
commit d718debcdb
1 changed files with 1 additions and 3 deletions

View File

@ -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;