Re: [PATCH 22/25] net: dsa: felix: check return code of mdio_alloc and mdio_register

2021-09-28 Thread Ramon Fried
On Mon, Sep 27, 2021 at 2:22 PM Vladimir Oltean wrote: > > These functions can return errors, it's best to catch them and trigger > the driver unwind code path. > > Signed-off-by: Vladimir Oltean > --- > drivers/net/mscc_eswitch/felix_switch.c | 10 +- > 1 file changed, 9 insertions(+),

[PATCH 22/25] net: dsa: felix: check return code of mdio_alloc and mdio_register

2021-09-27 Thread Vladimir Oltean
These functions can return errors, it's best to catch them and trigger the driver unwind code path. Signed-off-by: Vladimir Oltean --- drivers/net/mscc_eswitch/felix_switch.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/mscc_eswitch/felix_switch.c