summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-11 06:19:49 +0200
committerGuenter Roeck <linux@roeck-us.net>2013-09-11 22:01:32 +0200
commit12ca0b569eac0bf8389b3eac74ba1d7e9f624ab8 (patch)
tree7839f0961276aa54ebf92ed460c865dde45e23bb /drivers/hwmon
parenthwmon: (emc2103) Fix return value (diff)
downloadlinux-12ca0b569eac0bf8389b3eac74ba1d7e9f624ab8.tar.xz
linux-12ca0b569eac0bf8389b3eac74ba1d7e9f624ab8.zip
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,
dev_err(bmc,
"Unable to register user with IPMI interface %d\n",
data->interface);
- return -EACCES;
+ return err;
}
return 0;