]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
hwmon: (vt1211) remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Tue, 29 Apr 2014 08:13:50 +0000 (17:13 +0900)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 1 May 2014 11:09:20 +0000 (04:09 -0700)
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>
drivers/hwmon/vt1211.c

index 6b2f1a42b3ff9d43f200234f6a408ad00a798170..344b22ec25533e0e39770d36aa0c87af29c815fd 100644 (file)
@@ -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),