Re: [PATCH net-next] net: phy: fixed-phy: Make the error path simpler

2018-06-24 Thread David Miller
From: Fabio Estevam Date: Sat, 23 Jun 2018 21:28:22 -0300 > From: Fabio Estevam > > When platform_device_register_simple() fails we can return > the error immediately instead of jumping to the 'err_pdev' > label. > > This makes the error path a bit simpler. > > Signed-off-by: Fabio Estevam

[PATCH net-next] net: phy: fixed-phy: Make the error path simpler

2018-06-23 Thread Fabio Estevam
From: Fabio Estevam When platform_device_register_simple() fails we can return the error immediately instead of jumping to the 'err_pdev' label. This makes the error path a bit simpler. Signed-off-by: Fabio Estevam --- drivers/net/phy/fixed_phy.c | 7 ++- 1 file changed, 2 insertions(+),