summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-29 17:12:25 +0900
committerGuenter Roeck <linux@roeck-us.net>2014-05-21 16:02:22 -0700
commiteefb6b76b19bdf78a39062fae8cc22b8319b02b5 (patch)
tree4af4dda36d0733b4906abcb361464f5430330d00 /drivers/hwmon
parent2f89b072c9f845e8be746dcd9b14b7043c4f9a65 (diff)
hwmon: (s3c-hwmon) 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')
-rw-r--r--drivers/hwmon/s3c-hwmon.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hwmon/s3c-hwmon.c b/drivers/hwmon/s3c-hwmon.c
index 73bd64e8c30..0674c13bbd4 100644
--- a/drivers/hwmon/s3c-hwmon.c
+++ b/drivers/hwmon/s3c-hwmon.c
@@ -285,10 +285,8 @@ static int s3c_hwmon_probe(struct platform_device *dev)
}
hwmon = devm_kzalloc(&dev->dev, sizeof(struct s3c_hwmon), GFP_KERNEL);
- if (hwmon == NULL) {
- dev_err(&dev->dev, "no memory\n");
+ if (hwmon == NULL)
return -ENOMEM;
- }
platform_set_drvdata(dev, hwmon);