Commit 0df2f6c1 authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Johannes Berg

mesh_plink: fixup type of timeout to match usage

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: default avatarNicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent cc57ac53
...@@ -621,7 +621,7 @@ static void mesh_plink_timer(unsigned long data) ...@@ -621,7 +621,7 @@ static void mesh_plink_timer(unsigned long data)
sta->llid, sta->plid, reason); 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.expires = jiffies + msecs_to_jiffies(timeout);
sta->plink_timer.data = (unsigned long) sta; sta->plink_timer.data = (unsigned long) sta;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment