]> 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)
commit86f66282dff00e7456b63477d83bfb4161c0b3a2
treed7d63b0cf26e47ddbbca17d29c8e6748757f076e
parente5c6df8dbc35e8f11209985d91889c8044536dc5
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