Skip to contentSkip to conversation

hwmon: (ibmaem) Fix return value

PATCH In review Sachin Kamat 2 participants 2 messages Sep 11, 2013 Hardware monitoring

lore
Share & tools
lore
#0 lore raw

PATCH 2/5 hwmon: (ibmaem) Fix return value

Propagate appropriate error code obtained from ipmi_create_user() instead of hardcoding.

Cc Darrick J. Wong <[email protected]>
---
 drivers/hwmon/ibmaem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/ibmaem.c +1 -1
index e2b56a2..632f1dc 100644
@@ -292,7 +292,7 @@ static int aem_init_ipmi_data(struct aem_ipmi_data *data, int iface,
 		dev_err(bmc,
 			"Unable to register user with IPMI interface %d\n",
 			data->interface);
-		return -EACCES;
+		return err;
 	}
 
 	return 0;
Signature · 7 lines
1.7.9.5


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Acked-by on v1 2/5
#1 lore raw

Looks fine to me, so:

--D

Quoted 25 lines · Sachin Kamat

Propagate appropriate error code obtained from ipmi_create_user() instead of hardcoding.

Cc Darrick J. Wong <[email protected]>
---
 drivers/hwmon/ibmaem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/ibmaem.c +1 -1
index e2b56a2..632f1dc 100644
@@ -292,7 +292,7 @@ static int aem_init_ipmi_data(struct aem_ipmi_data *data, int iface,
 		dev_err(bmc,
 			"Unable to register user with IPMI interface %d\n",
 			data->interface);
-		return -EACCES;
+		return err;
 	}
 
 	return 0;
Signature · 1 line
1.7.9.5

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