Commit fd0392e6 authored by Thomas Betker's avatar Thomas Betker Committed by Michal Simek
Browse files

net: emacps: Remove dead code in xemacps_probe()



xemacps_mii_probe() always returns 0 or -1, so the condition rc == -2
in xemacps_probe() will never hold true.

Also, we should not unregister and free lp->mii_bus in xemacps_probe()
anyway, as this is the job of xemacps_remove().

Signed-off-by: default avatarThomas Betker <thomas.betker@rohde-schwarz.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent af937d95
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment