Skip to contentSkip to conversation

hwmon: (max1111) 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 4/8 hwmon: (max1111) remove unnecessary OOM messages

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

---
 drivers/hwmon/max1111.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/hwmon/max1111.c +1 -3
index eda077d..f67d71e 100644
@@ -192,10 +192,8 @@ static int max1111_probe(struct spi_device *spi)
 		return err;
 
 	data = devm_kzalloc(&spi->dev, sizeof(struct max1111_data), GFP_KERNEL);
-	if (data = NULL) {
-		dev_err(&spi->dev, "failed to allocate memory\n");
+	if (data = NULL)
 		return -ENOMEM;
-	}
 
 	switch (chip) {
 	case max1110:
Signature · 8 lines
1.7.10.4



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