Skip to contentSkip to conversation

hwmon: (ibmpex) remove unnecessary OOM messages

PATCH In review Jingoo Han 2 participants 2 messages Apr 29, 2014 Hardware monitoring

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 2/8 hwmon: (ibmpex) remove unnecessary OOM messages

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

---
 drivers/hwmon/ibmpex.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/hwmon/ibmpex.c +1 -3
index 20ab0fb..030e7ff 100644
@@ -463,10 +463,8 @@ static void ibmpex_register_bmc(int iface, struct device *dev)
 	int err;
 
 	data = kzalloc(sizeof(*data), GFP_KERNEL);
-	if (!data) {
-		dev_err(dev, "Insufficient memory for BMC interface.\n");
+	if (!data)
 		return;
-	}
 
 	data->address.addr_type = IPMI_SYSTEM_INTERFACE_ADDR_TYPE;
 	data->address.channel = IPMI_BMC_CHANNEL;
Signature · 8 lines
1.7.10.4



_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Acked-by on v1 2/8
#1 lore raw
Quoted 4 lines · Jingoo Han

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

Looks ok, so you can add:

--D

Quoted 24 lines
---
 drivers/hwmon/ibmpex.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/hwmon/ibmpex.c +1 -3
index 20ab0fb..030e7ff 100644
@@ -463,10 +463,8 @@ static void ibmpex_register_bmc(int iface, struct device *dev)
 	int err;
 
 	data = kzalloc(sizeof(*data), GFP_KERNEL);
-	if (!data) {
-		dev_err(dev, "Insufficient memory for BMC interface.\n");
+	if (!data)
 		return;
-	}
 
 	data->address.addr_type = IPMI_SYSTEM_INTERFACE_ADDR_TYPE;
 	data->address.channel = IPMI_BMC_CHANNEL;
Signature · 1 line
1.7.10.4

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