2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 06:04:14 +08:00

mei: make return values consistent across the driver

Follow-up for bits missed in
commit 7ca96aa278
mei: make return values consistent across the driver

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Alexander Usyskin 2014-03-31 17:59:24 +03:00 committed by Greg Kroah-Hartman
parent 04dd366195
commit 86113500c0
2 changed files with 3 additions and 4 deletions

View File

@ -247,7 +247,7 @@ static int ___mei_cl_send(struct mei_cl *cl, u8 *buf, size_t length,
return id;
if (length > dev->me_clients[id].props.max_msg_length)
return -EINVAL;
return -EFBIG;
cb = mei_io_cb_init(cl, NULL);
if (!cb)

View File

@ -768,10 +768,9 @@ int mei_cl_read_start(struct mei_cl *cl, size_t length)
cb->fop_type = MEI_FOP_READ;
if (mei_hbuf_acquire(dev)) {
if (mei_hbm_cl_flow_control_req(dev, cl)) {
rets = -ENODEV;
rets = mei_hbm_cl_flow_control_req(dev, cl);
if (rets < 0)
goto out;
}
list_add_tail(&cb->list, &dev->read_list.list);
} else {