rcu: Remove needless initialization
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Sat, 16 Jun 2012 01:22:05 +0000 (18:22 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 2 Jul 2012 19:33:22 +0000 (12:33 -0700)
For global variables, C defaults all fields to zero.  The initialization
of the rcu_state structure's ->n_force_qs and ->n_force_qs_ngp fields
is therefore redundant, so this commit removes these initializations.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.c

index ff992ac24e734a66b635ed21064526bf7df06cc0..44a8fda9be86da3c2630353d30a368f00c43f754 100644 (file)
@@ -73,8 +73,6 @@ static struct lock_class_key rcu_node_class[RCU_NUM_LVLS];
        .orphan_donetail = &sname##_state.orphan_donelist, \
        .barrier_mutex = __MUTEX_INITIALIZER(sname##_state.barrier_mutex), \
        .fqslock = __RAW_SPIN_LOCK_UNLOCKED(&sname##_state.fqslock), \
-       .n_force_qs = 0, \
-       .n_force_qs_ngp = 0, \
        .name = #sname, \
 }