Skip to content
Commit 945a5505 authored by Patrick van Gelder's avatar Patrick van Gelder Committed by Michal Simek
Browse files

net: xilinx: axi_emac: Fix endless loop when no PHYs are connected



The index used to iterate over the possible PHYs in axiemac_phy_init was an
unsigned int and decremented. Therefor it was always >= 0 and never exited
the loop.

Signed-off-by: default avatarPatrick van Gelder <patrick.vangelder@nl.bosch.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 6b3984c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment