Skip to content
Commit b0c1638f authored by Fabio Estevam's avatar Fabio Estevam Committed by David S. Miller
Browse files

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: default avatarFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dd55c4ea
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment