提交 611cd8ae 编写于 作者: J Jingoo Han 提交者: Guenter Roeck

hwmon: (max1111) remove unnecessary OOM messages

The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.
Signed-off-by: NJingoo Han <jg1.han@samsung.com>
Acked-by: NJean Delvare <jdelvare@suse.de>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
上级 567817de
...@@ -192,10 +192,8 @@ static int max1111_probe(struct spi_device *spi) ...@@ -192,10 +192,8 @@ static int max1111_probe(struct spi_device *spi)
return err; return err;
data = devm_kzalloc(&spi->dev, sizeof(struct max1111_data), GFP_KERNEL); data = devm_kzalloc(&spi->dev, sizeof(struct max1111_data), GFP_KERNEL);
if (data == NULL) { if (data == NULL)
dev_err(&spi->dev, "failed to allocate memory\n");
return -ENOMEM; return -ENOMEM;
}
switch (chip) { switch (chip) {
case max1110: case max1110:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册