Re: [PATCH net-next 09/10] ieee802154: fakelb: Convert to platform remove callback returning void

2023-11-20 Thread Miquel Raynal
On Fri, 2023-11-17 at 09:59:32 UTC, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= wrote: > The .remove() callback for a platform driver returns an int which makes > many driver authors wrongly assume it's possible to do error handling by > returning an error code. However the value returned is ignored (apart >

Re: [PATCH net-next 09/10] ieee802154: fakelb: Convert to platform remove callback returning void

2023-11-17 Thread Stefan Schmidt
Hello. On 17.11.23 10:59, Uwe Kleine-König wrote: The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is ignored (apart from emitting a warning) and th

[PATCH net-next 09/10] ieee802154: fakelb: Convert to platform remove callback returning void

2023-11-17 Thread Uwe Kleine-König
The .remove() callback for a platform driver returns an int which makes many driver authors wrongly assume it's possible to do error handling by returning an error code. However the value returned is ignored (apart from emitting a warning) and this typically results in resource leaks. To improve h