diff options
author | Marek Lindner <mareklindner@neomailbox.ch> | 2016-05-02 19:52:08 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2016-06-30 10:29:43 +0200 |
commit | 6f0a6b5ee84fee29abd634e69ea67d6cc87817a5 (patch) | |
tree | b30d9a0679b1e627ca3f2796334490fc2033acd4 /net/batman-adv/bat_v_elp.c | |
parent | batman-adv: update elp interval documentation (diff) | |
download | linux-6f0a6b5ee84fee29abd634e69ea67d6cc87817a5.tar.xz linux-6f0a6b5ee84fee29abd634e69ea67d6cc87817a5.zip |
batman-adv: refactor batadv_neigh_node_* functions to follow common style
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/bat_v_elp.c')
-rw-r--r-- | net/batman-adv/bat_v_elp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/batman-adv/bat_v_elp.c b/net/batman-adv/bat_v_elp.c index df42eb1365a0..8909d1eb9622 100644 --- a/net/batman-adv/bat_v_elp.c +++ b/net/batman-adv/bat_v_elp.c @@ -443,7 +443,8 @@ static void batadv_v_elp_neigh_update(struct batadv_priv *bat_priv, if (!orig_neigh) return; - neigh = batadv_neigh_node_new(orig_neigh, if_incoming, neigh_addr); + neigh = batadv_neigh_node_get_or_create(orig_neigh, + if_incoming, neigh_addr); if (!neigh) goto orig_free; |