aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-11 00:19:49 -0400
committerGuenter Roeck <linux@roeck-us.net>2013-09-11 16:01:32 -0400
commit12ca0b569eac0bf8389b3eac74ba1d7e9f624ab8 (patch)
tree7839f0961276aa54ebf92ed460c865dde45e23bb /drivers/hwmon
parent1a3abbd0b9a16e40fd4718f99896c437a193c0a1 (diff)
hwmon: (ibmaem) Fix return value
Propagate appropriate error code obtained from ipmi_create_user() instead of hardcoding. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Darrick J. Wong <darrick.wong@oracle.com> Acked-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/ibmaem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ibmaem.c b/drivers/hwmon/ibmaem.c
index e2b56a2b756c..632f1dc0fe1f 100644
--- a/drivers/hwmon/ibmaem.c
+++ b/drivers/hwmon/ibmaem.c
@@ -292,7 +292,7 @@ static int aem_init_ipmi_data(struct aem_ipmi_data *data, int iface,
292 dev_err(bmc, 292 dev_err(bmc,
293 "Unable to register user with IPMI interface %d\n", 293 "Unable to register user with IPMI interface %d\n",
294 data->interface); 294 data->interface);
295 return -EACCES; 295 return err;
296 } 296 }
297 297
298 return 0; 298 return 0;