]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commitb0c1638f26a5f8d593e79b226e8dec0bcd5adc3e
treed7d63b0cf26e47ddbbca17d29c8e6748757f076e
parentdd55c4ea9e6ba957083f985f33f994c23b405e9e
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