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

index 32f5132c4652d43b89037f9ec16934d5f4d685f4..9e57b77ecd34ef3367ed64b4105c5ce65e3c724f 100644 (file)
@@ -1387,10 +1387,8 @@ static int f71805f_probe(struct platform_device *pdev)
 
        data = devm_kzalloc(&pdev->dev, sizeof(struct f71805f_data),
                            GFP_KERNEL);
-       if (!data) {
-               pr_err("Out of memory\n");
+       if (!data)
                return -ENOMEM;
-       }
 
        res = platform_get_resource(pdev, IORESOURCE_IO, 0);
        if (!devm_request_region(&pdev->dev, res->start + ADDR_REG_OFFSET, 2,