提交 516add1d 编写于 作者: S Sachin Kamat 提交者: Mark Brown

regulator: tps6524x: Remove redundant error message

kzalloc prints its own OOM message upon failure.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 38dbfb59
...@@ -593,10 +593,9 @@ static int pmic_probe(struct spi_device *spi) ...@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册