Re: [PATCH 3/7] extcon: Fix return value in extcon-class.c

From: Chanwoo Choi
Date: Tue Nov 20 2012 - 02:54:30 EST


On 11/20/2012 02:22 PM, Sachin Kamat wrote:
> Return the value obtained from the function extcon_register_interest
> instead of -EINVAL.
>
> Silences the following warning:
> drivers/extcon/extcon-class.c:475 extcon_register_interest() info:
> why not propagate 'obj->cable_index' from extcon_find_cable_index()
> instead of -22?
>
> Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx>
> ---

I consolidate following two patches because of similar patch.

extcon: Fix return value in extcon-class.c
extcon: Redo: Fix return value in extcon_register_interest()

Thank you,
Chanwoo Choi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/