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

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

regulator: tps6524x: 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
+2 −3
Original line number Original line Diff line number Diff line
@@ -593,10 +593,9 @@ static int pmic_probe(struct spi_device *spi)
	}
	}


	hw = devm_kzalloc(&spi->dev, sizeof(struct tps6524x), GFP_KERNEL);
	hw = devm_kzalloc(&spi->dev, sizeof(struct tps6524x), GFP_KERNEL);
	if (!hw) {
	if (!hw)
		dev_err(dev, "cannot allocate regulator private data\n");
		return -ENOMEM;
		return -ENOMEM;
	}

	spi_set_drvdata(spi, hw);
	spi_set_drvdata(spi, hw);


	memset(hw, 0, sizeof(struct tps6524x));
	memset(hw, 0, sizeof(struct tps6524x));