Re: [PATCH net-next 10/10] ieee802154: hwsim: 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

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

[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

[PATCH net-next 10/10] ieee802154: hwsim: 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