diff options
author | Linus Lüssing <linus.luessing@web.de> | 2013-04-19 10:06:56 (GMT) |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2013-05-29 00:44:55 (GMT) |
commit | e54c77f08ec62434ac8b24e402aa7b787cf42198 (patch) | |
tree | 62b532066b325c5bef1b45e58b36043c71b3ece1 /net/batman-adv/send.c | |
parent | d4ff40f683221d46c351cd9ab61f37a6ea5d2444 (diff) | |
download | linux-fsl-qoriq-e54c77f08ec62434ac8b24e402aa7b787cf42198.tar.xz |
batman-adv: Remove unnecessary INIT_HLIST_NODE() calls
There's no need to for an explicit hlist_node initialization if it is
added to a list right away, like it's the case with the
hlist_add_head()s here.
Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/send.c')
-rw-r--r-- | net/batman-adv/send.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/batman-adv/send.c b/net/batman-adv/send.c index ed7072a..ce69f45 100644 --- a/net/batman-adv/send.c +++ b/net/batman-adv/send.c @@ -152,8 +152,6 @@ _batadv_add_bcast_packet_to_list(struct batadv_priv *bat_priv, struct batadv_forw_packet *forw_packet, unsigned long send_time) { - INIT_HLIST_NODE(&forw_packet->list); - /* add new packet to packet list */ spin_lock_bh(&bat_priv->forw_bcast_list_lock); hlist_add_head(&forw_packet->list, &bat_priv->forw_bcast_list); |