From: Tomas Winkler Date: Mon, 21 Oct 2013 19:05:40 +0000 (+0300) Subject: mei: bus: propagate error code returned by mei_me_cl_by_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f9350129a09d8f55ba9322fa4327aeb499a91bbd;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Tomas Winkler Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c index cd2033cd7120..4bc7d620d695 100644 --- 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;