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

Commit f9350129 authored by Tomas Winkler's avatar Tomas Winkler Committed by Greg Kroah-Hartman
Browse files

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: default avatarTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent df667a1a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;