diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-04-29 08:12:25 (GMT) |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-05-21 23:02:22 (GMT) |
commit | eefb6b76b19bdf78a39062fae8cc22b8319b02b5 (patch) | |
tree | 4af4dda36d0733b4906abcb361464f5430330d00 /drivers | |
parent | 2f89b072c9f845e8be746dcd9b14b7043c4f9a65 (diff) | |
download | linux-eefb6b76b19bdf78a39062fae8cc22b8319b02b5.tar.xz |
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hwmon/s3c-hwmon.c b/drivers/hwmon/s3c-hwmon.c index 73bd64e..0674c13 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); |