Commit 12ca0b56 authored by Sachin Kamat's avatar Sachin Kamat Committed by Guenter Roeck

hwmon: (ibmaem) Fix return value

Propagate appropriate error code obtained from ipmi_create_user()
instead of hardcoding.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Cc: Darrick J. Wong <darrick.wong@oracle.com>
Acked-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 1a3abbd0
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment