From: Jingoo Han Date: Tue, 29 Apr 2014 08:11:07 +0000 (+0900) Subject: hwmon: (max197) remove unnecessary OOM messages X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6122de8f8c6acbe16c2acd31e3334e87e82ae7ac;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git hwmon: (max197) 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 Acked-by: Jean Delvare Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/max197.c b/drivers/hwmon/max197.c index 96dccaf919d1..82128ad79a91 100644 --- a/drivers/hwmon/max197.c +++ b/drivers/hwmon/max197.c @@ -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);