summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-29 10:10:17 +0200
committerGuenter Roeck <linux@roeck-us.net>2014-05-22 01:02:22 +0200
commit611cd8aec8d0514edfffde457f3e2ca625b242c7 (patch)
tree12065bfa08427072ed1054325b586da2cf1fe638 /drivers
parenthwmon: (lm93) remove unnecessary OOM messages (diff)
downloadlinux-611cd8aec8d0514edfffde457f3e2ca625b242c7.tar.xz
linux-611cd8aec8d0514edfffde457f3e2ca625b242c7.zip
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')
-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: