Skip to content

Commit

Permalink
batman-adv: remove redundant hard_iface assignment
Browse files Browse the repository at this point in the history
The batadv_neigh_node_new() function already sets the hard_iface pointer.

Signed-off-by: Marek Lindner <[email protected]>
Acked-by: Simon Wunderlich <[email protected]>
Signed-off-by: Antonio Quartulli <[email protected]>
  • Loading branch information
Marek Lindner authored and ordex committed Aug 27, 2015
1 parent f729dc7 commit 39bf761
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/batman-adv/bat_iv_ogm.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ batadv_iv_ogm_neigh_new(struct batadv_hard_iface *hard_iface,
goto out;

neigh_node->orig_node = orig_neigh;
neigh_node->if_incoming = hard_iface;

spin_lock_bh(&orig_node->neigh_list_lock);
tmp_neigh_node = batadv_neigh_node_get(orig_node, hard_iface,
Expand Down

0 comments on commit 39bf761

Please sign in to comment.