Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d718debc authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown
Browse files

regulator: wm831x-isink: Remove redundant error message



kzalloc prints its own OOM message upon failure.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 5730aa57
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;