summaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2017-03-15 15:53:48 -0400
committerDavid S. Miller <davem@davemloft.net>2017-03-15 15:34:13 -0700
commite893de1ba1d39e78750ffadf7191aef8133c8fe8 (patch)
tree6abfe6f86d6d0a458b16e6e5cf708bb251903e56 /net/dsa
parent1aed18141317a43029293135e5c988a719757907 (diff)
downloadlinux-e893de1ba1d39e78750ffadf7191aef8133c8fe8.tar.bz2
net: dsa: dsa_fastest_ageing_time return unsigned
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>
Diffstat (limited to 'net/dsa')
-rw-r--r--net/dsa/slave.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index c34872e1febc..cec47e843570 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;