提交 f9350129 编写于 作者: T Tomas Winkler 提交者: Greg Kroah-Hartman

mei: bus: propagate error code returned by mei_me_cl_by_id

no need to change error code value returned by
mei_me_cl_by_id, just propagate it on
Signed-off-by: NTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 df667a1a
...@@ -245,7 +245,7 @@ static int ___mei_cl_send(struct mei_cl *cl, u8 *buf, size_t length, ...@@ -245,7 +245,7 @@ static int ___mei_cl_send(struct mei_cl *cl, u8 *buf, size_t length,
/* Check if we have an ME client device */ /* Check if we have an ME client device */
id = mei_me_cl_by_id(dev, cl->me_client_id); id = mei_me_cl_by_id(dev, cl->me_client_id);
if (id < 0) if (id < 0)
return -ENODEV; return id;
if (length > dev->me_clients[id].props.max_msg_length) if (length > dev->me_clients[id].props.max_msg_length)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册