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

Commit 9c25960c authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown
Browse files

regulator: gpio-regulator: Remove unneeded OOM error message



There is no need to print an OOM message after devm_kzalloc, since there is
a generic OOM message in place.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
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
@@ -239,10 +239,8 @@ static int gpio_regulator_probe(struct platform_device *pdev)

	drvdata = devm_kzalloc(&pdev->dev, sizeof(struct gpio_regulator_data),
			       GFP_KERNEL);
	if (drvdata == NULL) {
		dev_err(&pdev->dev, "Failed to allocate device data\n");
	if (drvdata == NULL)
		return -ENOMEM;
	}

	drvdata->desc.name = kstrdup(config->supply_name, GFP_KERNEL);
	if (drvdata->desc.name == NULL) {