Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86113500 authored by Alexander Usyskin's avatar Alexander Usyskin Committed by Greg Kroah-Hartman
Browse files

mei: make return values consistent across the driver



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

Signed-off-by: default avatarAlexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 04dd3661
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
+2 −3
Original line number Diff line number Diff line
@@ -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 {