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

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

regulator: da9063: 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 8a7963d5
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -774,10 +774,8 @@ static int da9063_regulator_probe(struct platform_device *pdev)
	size = sizeof(struct da9063_regulators) +
		n_regulators * sizeof(struct da9063_regulator);
	regulators = devm_kzalloc(&pdev->dev, size, GFP_KERNEL);
	if (!regulators) {
		dev_err(&pdev->dev, "No memory for regulators\n");
	if (!regulators)
		return -ENOMEM;
	}

	regulators->n_regulators = n_regulators;
	platform_set_drvdata(pdev, regulators);