aboutsummaryrefslogtreecommitdiffstats
path: root/include/phy_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/phy_interface.h')
-rw-r--r--include/phy_interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/phy_interface.h b/include/phy_interface.h
index ce3b5004ec2..fed3357b9a2 100644
--- a/include/phy_interface.h
+++ b/include/phy_interface.h
@@ -85,7 +85,7 @@ static const char * const backplane_mode_strings[] = {
static inline const char *phy_string_for_interface(phy_interface_t i)
{
/* Default to unknown */
- if (i > PHY_INTERFACE_MODE_NA)
+ if (i >= PHY_INTERFACE_MODE_MAX)
i = PHY_INTERFACE_MODE_NA;
return phy_interface_strings[i];