summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-29 10:12:25 +0200
committerGuenter Roeck <linux@roeck-us.net>2014-05-22 01:02:22 +0200
commiteefb6b76b19bdf78a39062fae8cc22b8319b02b5 (patch)
tree4af4dda36d0733b4906abcb361464f5430330d00 /drivers
parenthwmon: (pc87427) remove unnecessary OOM messages (diff)
downloadlinux-eefb6b76b19bdf78a39062fae8cc22b8319b02b5.tar.xz
linux-eefb6b76b19bdf78a39062fae8cc22b8319b02b5.zip
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')
-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 73bd64e8c30a..0674c13bbd4b 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);