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

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

regulator: arizona-ldo1: 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 38dbfb59
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -189,10 +189,8 @@ static int arizona_ldo1_probe(struct platform_device *pdev)
	int ret;

	ldo1 = devm_kzalloc(&pdev->dev, sizeof(*ldo1), GFP_KERNEL);
	if (ldo1 == NULL) {
		dev_err(&pdev->dev, "Unable to allocate private data\n");
	if (!ldo1)
		return -ENOMEM;
	}

	ldo1->arizona = arizona;