summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/vt1211.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-29 10:13:50 +0200
committerGuenter Roeck <linux@roeck-us.net>2014-05-22 01:02:22 +0200
commit5b20995ee7c5fc4fda8215301f86c7fa3faece27 (patch)
tree1172581e00b8c569864a408f718ad6367e722e15 /drivers/hwmon/vt1211.c
parenthwmon: (s3c-hwmon) remove unnecessary OOM messages (diff)
downloadlinux-5b20995ee7c5fc4fda8215301f86c7fa3faece27.tar.xz
linux-5b20995ee7c5fc4fda8215301f86c7fa3faece27.zip
hwmon: (vt1211) 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/vt1211.c')
-rw-r--r--drivers/hwmon/vt1211.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hwmon/vt1211.c b/drivers/hwmon/vt1211.c
index 6b2f1a42b3ff..344b22ec2553 100644
--- a/drivers/hwmon/vt1211.c
+++ b/drivers/hwmon/vt1211.c
@@ -1152,10 +1152,8 @@ static int vt1211_probe(struct platform_device *pdev)
int i, err;
data = devm_kzalloc(dev, sizeof(struct vt1211_data), GFP_KERNEL);
- if (!data) {
- dev_err(dev, "Out of memory\n");
+ if (!data)
return -ENOMEM;
- }
res = platform_get_resource(pdev, IORESOURCE_IO, 0);
if (!devm_request_region(dev, res->start, resource_size(res),