summaryrefslogtreecommitdiff
path: root/kernel/rcutree.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-06-15 18:22:05 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-07-02 12:33:22 -0700
commitcfed0a85dad921c683e9c0d25b072bcc5745ede0 (patch)
treee318ff5559bd38ccd715aeff17085f9b3e3068cb /kernel/rcutree.c
parent7be7f0be907224445acc62b3884c892f38b7ff40 (diff)
downloadlwn-cfed0a85dad921c683e9c0d25b072bcc5745ede0.tar.gz
lwn-cfed0a85dad921c683e9c0d25b072bcc5745ede0.zip
rcu: Remove needless initialization
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>
Diffstat (limited to 'kernel/rcutree.c')
-rw-r--r--kernel/rcutree.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/rcutree.c b/kernel/rcutree.c
index ff992ac24e73..44a8fda9be86 100644
--- a/kernel/rcutree.c
+++ b/kernel/rcutree.c
@@ -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, \
}