extcon: intel-mrfld: Don't shadow error from devm_extcon_dev_allocate()
PATCH 1/1 extcon: intel-mrfld: Don't shadow error from devm_extcon_dev_allocate()
Don't shadow error from devm_extcon_dev_allocate() and return it as is.
--- drivers/extcon/extcon-intel-mrfld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/extcon/extcon-intel-mrfld.c +1 -1
@@ -247,7 +247,7 @@ static int mrfld_extcon_probe(struct platform_device *pdev) data->edev =devm_extcon_dev_allocate (dev, mrfld_extcon_cable);if (IS_ERR (data->edev)) -return -ENOMEM ; +return PTR_ERR (data->edev); ret =devm_extcon_dev_register (dev, data->edev);if (ret <0 ) {
Signature · 1 line
2.43.0.rc1.1.gbec44491f096
Quoted 1 line · Andy Shevchenko
Don't shadow error from
devm_extcon_dev_allocate()and return it as is.
Any comment on this?
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 4 lines · Andy Shevchenko
Quoted 1 line · Andy Shevchenko
Don't shadow error from
devm_extcon_dev_allocate()and return it as is.Any comment on this?
Here is another one, can it be applied as well?
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 11 lines
-----Original Message-----
From: Andy Shevchenko <[email protected]>
Sent: Thursday, February 22, 2024 10:18 PM
To: [email protected]
Cc: MyungJoo Ham <[email protected]>; Chanwoo Choi <[email protected]>
Subject: Re: [PATCH v1 1/1] extcon: intel-mrfld: Don't shadow error fromdevm_extcon_dev_allocate()
Quoted 3 lines
Quoted 2 lines · Andy Shevchenko
Quoted 1 line · Andy Shevchenko
Don't shadow error from
devm_extcon_dev_allocate()and return it as
is.
Quoted 4 lines
Quoted 2 lines
Any comment on this?
Here is another one, can it be applied as well?
Applied it. Thanks.
Best Regards,
Chanwoo Choi
Quoted 3 lines · Chanwoo Choi
Quoted 3 lines
From: Andy Shevchenko <[email protected]>
Sent: Thursday, February 22, 2024 10:18 PM
On Thu, Feb 08, 2024 at 09:24:58PM +0200, Andy Shevchenko wrote:
...
Quoted 3 lines
Quoted 1 line
Here is another one, can it be applied as well?
Applied it. Thanks.
Thank you!
Signature · 2 lines
With Best Regards, Andy Shevchenko