batman-adv: convert time_after instances to has_timed_out
To increase readability the has_timed_out() functions has been introduced. This patch converts existing time_after() calls to use this wrapper function (if applicable). This patch also converts all timeouts to miliseconds to be consistent. Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
This commit is contained in:
@@ -396,7 +396,7 @@ void gw_node_purge(struct bat_priv *bat_priv)
|
||||
{
|
||||
struct gw_node *gw_node, *curr_gw;
|
||||
struct hlist_node *node, *node_tmp;
|
||||
unsigned long timeout = 2 * PURGE_TIMEOUT * HZ;
|
||||
unsigned long timeout = msecs_to_jiffies(2 * PURGE_TIMEOUT);
|
||||
int do_deselect = 0;
|
||||
|
||||
curr_gw = gw_get_selected_gw_node(bat_priv);
|
||||
|
Reference in New Issue
Block a user