]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: batman: remove all rcu head initializations
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 11 May 2010 23:33:01 +0000 (16:33 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 14 May 2010 20:14:09 +0000 (13:14 -0700)
Remove all rcu head inits. We don't care about the RCU head state before
passing it to call_rcu() anyway. Only leave the "on_stack" variants so
debugobjects can keep track of objects on stack.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Cc: Marek Lindner <lindner_marek@yahoo.de>
Cc: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/hard-interface.c

index 0d1d1011dd44c5adcbcf3804885d295c6ab0c3af..7a582e80de188bccaea0e8a8e051a850a6ba409a 100644 (file)
@@ -340,7 +340,6 @@ static struct batman_if *hardif_add_interface(struct net_device *net_dev)
        batman_if->if_num = -1;
        batman_if->net_dev = net_dev;
        batman_if->if_status = IF_NOT_IN_USE;
-       INIT_RCU_HEAD(&batman_if->rcu);
        INIT_LIST_HEAD(&batman_if->list);
 
        check_known_mac_addr(batman_if->net_dev->dev_addr);