[PATCH net-next 01/11] net: stmmac: Make stmmac_pltfr_remove() return void

Simon Horman simon.horman at corigine.com
Mon Apr 3 08:55:20 PDT 2023


On Sun, Apr 02, 2023 at 04:30:15PM +0200, Uwe Kleine-König wrote:
> The function returns zero unconditionally. Change it to return void instead
> which simplifies some callers as error handing becomes unnecessary.
> 
> The function is also used for some drivers as remove callback. Switch these
> to the .remove_new() callback. For some others no error can happen in the
> remove callback now, convert them to .remove_new(), too.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Reviewed-by: Simon Horman <simon.horman at corigine.com>




More information about the Linux-mediatek mailing list