summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/max1111.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-29 17:10:17 +0900
committerGuenter Roeck <linux@roeck-us.net>2014-05-21 16:02:22 -0700
commit611cd8aec8d0514edfffde457f3e2ca625b242c7 (patch)
tree12065bfa08427072ed1054325b586da2cf1fe638 /drivers/hwmon/max1111.c
parent567817de8574dba2e78b4fe849c1261c70a10245 (diff)
downloadlinux-611cd8aec8d0514edfffde457f3e2ca625b242c7.tar.bz2
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: Jingoo Han <jg1.han@samsung.com> Acked-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/max1111.c')
-rw-r--r--drivers/hwmon/max1111.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hwmon/max1111.c b/drivers/hwmon/max1111.c
index eda077de8a9f..f67d71ee8386 100644
--- a/drivers/hwmon/max1111.c
+++ b/drivers/hwmon/max1111.c
@@ -192,10 +192,8 @@ static int max1111_probe(struct spi_device *spi)
return err;
data = devm_kzalloc(&spi->dev, sizeof(struct max1111_data), GFP_KERNEL);
- if (data == NULL) {
- dev_err(&spi->dev, "failed to allocate memory\n");
+ if (data == NULL)
return -ENOMEM;
- }
switch (chip) {
case max1110: