aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-11 09:49:49 +0530
committerGuenter Roeck <linux@roeck-us.net>2013-09-11 13:01:32 -0700
commit12ca0b569eac0bf8389b3eac74ba1d7e9f624ab8 (patch)
tree7839f0961276aa54ebf92ed460c865dde45e23bb
parent1a3abbd0b9a16e40fd4718f99896c437a193c0a1 (diff)
downloadkernel_goldelico_gta04-12ca0b569eac0bf8389b3eac74ba1d7e9f624ab8.zip
kernel_goldelico_gta04-12ca0b569eac0bf8389b3eac74ba1d7e9f624ab8.tar.gz
kernel_goldelico_gta04-12ca0b569eac0bf8389b3eac74ba1d7e9f624ab8.tar.bz2
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>
-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 e2b56a2..632f1dc 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;