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:
Родитель
04dd366195
Коммит
86113500c0
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче