diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index c34872e1febc4b75d1b69b18a8a1189405ca30fa..cec47e8435705384f8a271150ee3d81d51f646fc 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -419,8 +419,8 @@ static int dsa_slave_vlan_filtering(struct net_device *dev,
 	return 0;
 }
 
-static int dsa_fastest_ageing_time(struct dsa_switch *ds,
-				   unsigned int ageing_time)
+static unsigned int dsa_fastest_ageing_time(struct dsa_switch *ds,
+					    unsigned int ageing_time)
 {
 	int i;