mesh_plink: fixup type of timeout to match usage
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 2 Mar 2015 09:54:14 +0000 (04:54 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 4 Mar 2015 09:34:14 +0000 (10:34 +0100)
timeout was being passed as int but assigned from u32/u16 values and used
as unsigned type. This is really only for better readability.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_plink.c

index 4eefd5d..8465c05 100644 (file)
@@ -621,7 +621,7 @@ static void mesh_plink_timer(unsigned long data)
                                    sta->llid, sta->plid, reason);
 }
 
-static inline void mesh_plink_timer_set(struct sta_info *sta, int timeout)
+static inline void mesh_plink_timer_set(struct sta_info *sta, u32 timeout)
 {
        sta->plink_timer.expires = jiffies + msecs_to_jiffies(timeout);
        sta->plink_timer.data = (unsigned long) sta;