summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2013-10-21 22:05:40 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-29 16:20:43 -0700
commitf9350129a09d8f55ba9322fa4327aeb499a91bbd (patch)
tree3507f4322ada20c17de76160cd613a0cfb5368fd /drivers/misc
parentdf667a1a2c6bf828c5959a0ba15bcf987a9d17fe (diff)
downloadop-kernel-dev-f9350129a09d8f55ba9322fa4327aeb499a91bbd.zip
op-kernel-dev-f9350129a09d8f55ba9322fa4327aeb499a91bbd.tar.gz
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: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/mei/bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c
index cd2033c..4bc7d62 100644
--- a/drivers/misc/mei/bus.c
+++ b/drivers/misc/mei/bus.c
@@ -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 */
id = mei_me_cl_by_id(dev, cl->me_client_id);
if (id < 0)
- return -ENODEV;
+ return id;
if (length > dev->me_clients[id].props.max_msg_length)
return -EINVAL;
OpenPOWER on IntegriCloud