]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
hwmon: (max197) remove unnecessary OOM messages
authorJingoo Han <jg1.han@samsung.com>
Tue, 29 Apr 2014 08:11:07 +0000 (17:11 +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/max197.c

index 96dccaf919d1da4c02b26de8f937f5c401f84ff4..82128ad79a911c893e784b8a5623f1e04c4afb5a 100644 (file)
@@ -275,10 +275,8 @@ static int max197_probe(struct platform_device *pdev)
        }
 
        data = devm_kzalloc(&pdev->dev, sizeof(struct max197_data), GFP_KERNEL);
-       if (!data) {
-               dev_err(&pdev->dev, "devm_kzalloc failed\n");
+       if (!data)
                return -ENOMEM;
-       }
 
        data->pdata = pdata;
        mutex_init(&data->lock);