Skip to contentSkip to conversation

hwmon: (max197) remove unnecessary OOM messages

PATCH In review Jingoo Han 1 participant 1 message Apr 29, 2014 Hardware monitoring

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 5/8 hwmon: (max197) remove unnecessary OOM messages

The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message.

---
 drivers/hwmon/max197.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/hwmon/max197.c +1 -3
index 96dccaf..82128ad 100644
@@ -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);
Signature · 8 lines
1.7.10.4



_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors