hwmon: (ibmaem) Fix return value
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 11 Sep 2013 04:19:49 +0000 (09:49 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 11 Sep 2013 20:01:32 +0000 (13:01 -0700)
commit12ca0b569eac0bf8389b3eac74ba1d7e9f624ab8
tree7839f0961276aa54ebf92ed460c865dde45e23bb
parent1a3abbd0b9a16e40fd4718f99896c437a193c0a1
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>
drivers/hwmon/ibmaem.c