hwmon: (ibmaem) Fix return value
PATCH 2/5 hwmon: (ibmaem) Fix return value
Propagate appropriate error code obtained from ipmi_create_user() instead of hardcoding.
Signed-off-by Sachin Kamat <[email protected]>
Cc Darrick J. Wong <[email protected]>
--- drivers/hwmon/ibmaem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/ibmaem.c +1 -1
@@ -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
Looks fine to me, so:
Acked-by Darrick J. Wong <[email protected]>
--D
Quoted 25 lines · Sachin Kamat
Propagate appropriate error code obtained from
ipmi_create_user()instead of hardcoding.Signed-off-by Sachin Kamat <[email protected]>Cc Darrick J. Wong <[email protected]>--- drivers/hwmon/ibmaem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/hwmon/ibmaem.c +1
-1@@ -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