net: dsa: dsa_fastest_ageing_time return unsigned
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Wed, 15 Mar 2017 19:53:48 +0000 (15:53 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Mar 2017 22:34:13 +0000 (15:34 -0700)
The ageing time is defined as unsigned int, so make
dsa_fastest_ageing_time return an unsigned int instead of int.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c

index c34872e..cec47e8 100644 (file)
@@ -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;