RE: [PATCH 2/4] extcon: added extcon_alloc_cables to simplify extcon register function

From: Bumwoo Lee
Date: Sun Feb 19 2023 - 23:58:06 EST


I Got it.

I will prepare new patch for return value.

Thank for your comment.

Regards,
Bumwoo.
-----Original Message-----
From: MyungJoo Ham <myungjoo.ham@xxxxxxxxxxx>
Sent: Monday, February 20, 2023 1:39 PM
To: Bumwoo Lee <bw365.lee@xxxxxxxxxxx>; Chanwoo Choi <cw00.choi@xxxxxxxxxxx>; linux-kernel@xxxxxxxxxxxxxxx
Subject: RE: [PATCH 2/4] extcon: added extcon_alloc_cables to simplify extcon register function

>--------- Original Message ---------
>Sender : 이범우 <bw365.lee@xxxxxxxxxxx>Product S/W Lab(VD)/삼성전자 Date :
>2023-02-17 17:48 (GMT+9) Title : [PATCH 2/4] extcon: added
>extcon_alloc_cables to simplify extcon register function
>
>The cable allocation part is functionalized from extcon_dev_register.
>
>Signed-off-by: Bumwoo Lee <bw365.lee@xxxxxxxxxxx>

...

>+ if (extcon_alloc_cables(edev))
>+ goto err_alloc_cables;
>

You are abandoning error return values, here.
Please return appropriate error codes.

Cheers,
MyungJoo