projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df667a1
)
mei: bus: propagate error code returned by mei_me_cl_by_id
author
Tomas Winkler
<tomas.winkler@intel.com>
Mon, 21 Oct 2013 19:05:40 +0000
(22:05 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 29 Oct 2013 23:20:43 +0000
(16:20 -0700)
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>
drivers/misc/mei/bus.c
patch
|
blob
|
history
diff --git
a/drivers/misc/mei/bus.c
b/drivers/misc/mei/bus.c
index cd2033cd7120d7631fa8d345409ed9ea86259799..4bc7d620d695f05c26a558cfe70992a4dae83963 100644
(file)
--- 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;