diff options
author | Antonio Quartulli <ordex@autistici.org> | 2012-05-24 18:00:54 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-28 02:44:52 -0400 |
commit | d4f4469255359c97564b15b5ef04253fd3ec08f1 (patch) | |
tree | b9752e703c15bc1499439699ea0bbff56c325316 /net/batman-adv/routing.c | |
parent | 3b643de541d4051f236f1e422f3329cccb7bd9c5 (diff) |
batman-adv: beautify tt_global_add() argument list
Instead of adding a new bool argument each time it is needed, it is better (and
simpler) to pass an 8bit flag argument which contains all the needed flags
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/routing.c')
-rw-r--r-- | net/batman-adv/routing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c index 1b8f67744e23..864692add808 100644 --- a/net/batman-adv/routing.c +++ b/net/batman-adv/routing.c | |||
@@ -699,8 +699,8 @@ int batadv_recv_roam_adv(struct sk_buff *skb, struct hard_iface *recv_if) | |||
699 | roam_adv_packet->src, roam_adv_packet->client); | 699 | roam_adv_packet->src, roam_adv_packet->client); |
700 | 700 | ||
701 | batadv_tt_global_add(bat_priv, orig_node, roam_adv_packet->client, | 701 | batadv_tt_global_add(bat_priv, orig_node, roam_adv_packet->client, |
702 | atomic_read(&orig_node->last_ttvn) + 1, true, | 702 | TT_CLIENT_ROAM, |
703 | false); | 703 | atomic_read(&orig_node->last_ttvn) + 1); |
704 | 704 | ||
705 | /* Roaming phase starts: I have new information but the ttvn has not | 705 | /* Roaming phase starts: I have new information but the ttvn has not |
706 | * been incremented yet. This flag will make me check all the incoming | 706 | * been incremented yet. This flag will make me check all the incoming |