summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-29 17:11:07 +0900
committerGuenter Roeck <linux@roeck-us.net>2014-05-21 16:02:22 -0700
commit6122de8f8c6acbe16c2acd31e3334e87e82ae7ac (patch)
tree7ca5f5b16c0426c4a07c2943b6e05528e2904c4f
parent611cd8aec8d0514edfffde457f3e2ca625b242c7 (diff)
downloadblackbird-obmc-linux-6122de8f8c6acbe16c2acd31e3334e87e82ae7ac.tar.gz
blackbird-obmc-linux-6122de8f8c6acbe16c2acd31e3334e87e82ae7ac.zip
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 <jg1.han@samsung.com> Acked-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r--drivers/hwmon/max197.c4
1 files changed, 1 insertions, 3 deletions
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);
OpenPOWER on IntegriCloud