]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: fixed-phy: Make the error path simpler
authorFabio Estevam <fabio.estevam@nxp.com>
Sun, 24 Jun 2018 00:28:22 +0000 (21:28 -0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Jun 2018 07:41:58 +0000 (16:41 +0900)
commit7e6e34cfb1c17ca98410b7ae583439d237ad813a
treed7d63b0cf26e47ddbbca17d29c8e6748757f076e
parentf36f04aa3e4441af35e92bf4225c4cc429b2ab85
net: phy: fixed-phy: Make the error path simpler

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 <fabio.estevam@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/fixed_phy.c