提交 064652c0 编写于 作者: M Miquel Raynal 提交者: Jonathan Cameron

iio: adc: max1027: Drop extra warning message

Memory allocation errors automatically trigger the right logs, no need
to have our own.
Signed-off-by: NMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: NNuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20210921115408.66711-3-miquel.raynal@bootlin.comSigned-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
上级 7127822d
...@@ -446,10 +446,8 @@ static int max1027_probe(struct spi_device *spi) ...@@ -446,10 +446,8 @@ static int max1027_probe(struct spi_device *spi)
st->buffer = devm_kmalloc_array(&indio_dev->dev, st->buffer = devm_kmalloc_array(&indio_dev->dev,
indio_dev->num_channels, 2, indio_dev->num_channels, 2,
GFP_KERNEL); GFP_KERNEL);
if (!st->buffer) { if (!st->buffer)
dev_err(&indio_dev->dev, "Can't allocate buffer\n");
return -ENOMEM; return -ENOMEM;
}
if (spi->irq) { if (spi->irq) {
ret = devm_iio_triggered_buffer_setup(&spi->dev, indio_dev, ret = devm_iio_triggered_buffer_setup(&spi->dev, indio_dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册