提交 12ca0b56 编写于 作者: S Sachin Kamat 提交者: Guenter Roeck

hwmon: (ibmaem) Fix return value

Propagate appropriate error code obtained from ipmi_create_user()
instead of hardcoding.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Cc: Darrick J. Wong <darrick.wong@oracle.com>
Acked-by: NDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册