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

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

regulator: max8997: 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 c0a35363
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -937,7 +937,6 @@ static int max8997_pmic_dt_parse_pdata(struct platform_device *pdev,
				pdata->num_regulators, GFP_KERNEL);
				pdata->num_regulators, GFP_KERNEL);
	if (!rdata) {
	if (!rdata) {
		of_node_put(regulators_np);
		of_node_put(regulators_np);
		dev_err(&pdev->dev, "could not allocate memory for regulator data\n");
		return -ENOMEM;
		return -ENOMEM;
	}
	}