Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1601690

[PATCH net-next v2 1/3] net: dsa: dsa_fastest_ageing_time return unsigned

From Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Newsgroups linux.kernel
Subject [PATCH net-next v2 1/3] net: dsa: dsa_fastest_ageing_time return unsigned
Date 2017-03-15 21:00 +0100
Message-ID <tlnfs-3Ul-11@gated-at.bofh.it> (permalink)
References <tlnfr-3Ul-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 net/dsa/slave.c | 4 ++--
 1 file 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;
 
-- 
2.12.0

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH net-next v2 1/3] net: dsa: dsa_fastest_ageing_time return unsigned Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2017-03-15 21:00 +0100
  Re: [PATCH net-next v2 1/3] net: dsa: dsa_fastest_ageing_time return  unsigned Florian Fainelli <f.fainelli@gmail.com> - 2017-03-15 21:20 +0100

csiph-web