Re: [PATCH] net: mdio: Remove redundant parameter and check

2020-09-23 Thread David Miller
From: Tang Bin Date: Wed, 23 Sep 2020 18:05:32 +0800 > @@ -125,12 +124,9 @@ ipq8064_mdio_probe(struct platform_device *pdev) > return PTR_ERR(priv->base); > } > > - ret = of_mdiobus_register(bus, np); > - if (ret) > - return ret; > - >

[PATCH] net: mdio: Remove redundant parameter and check

2020-09-23 Thread Tang Bin
In the function ipq8064_mdio_probe(), of_mdiobus_register() might returned zero, so the direct return can simplify code. Thus remove redundant parameter and check. Signed-off-by: Zhang Shengju Signed-off-by: Tang Bin --- drivers/net/mdio/mdio-ipq8064.c | 8 ++-- 1 file changed, 2

Re: [PATCH] net: mdio: Remove redundant parameter and check

2020-09-23 Thread Heiner Kallweit
On 23.09.2020 12:05, Tang Bin wrote: > In the function ipq8064_mdio_probe(), of_mdiobus_register() might > returned zero, so the direct return can simplify code. Thus remove > redundant parameter and check. > > Signed-off-by: Zhang Shengju > Signed-off-by: Tang Bin > --- >