summaryrefslogtreecommitdiffstats
path: root/kernel/rcu
diff options
context:
space:
mode:
authorByungchul Park <byungchul.park@lge.com>2018-02-14 18:05:24 +0900
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-02-20 16:21:12 -0800
commita72da917f1861ed06f8824328b1b3ecd003a5b5b (patch)
treea5754c8e9dfbb2b00e7677752db513241d8e2f66 /kernel/rcu
parent8ddbd8832d25463a996a1075c35f312fb43c86b1 (diff)
downloadlinux-stable-a72da917f1861ed06f8824328b1b3ecd003a5b5b.tar.gz
linux-stable-a72da917f1861ed06f8824328b1b3ecd003a5b5b.tar.bz2
linux-stable-a72da917f1861ed06f8824328b1b3ecd003a5b5b.zip
srcu: Remove dead code in srcu_gp_end()
Of course, compilers will optimize out a dead code. Anyway, remove any dead code for better readibility. Signed-off-by: Byungchul Park <byungchul.park@lge.com> Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r--kernel/rcu/srcutree.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c
index d582a2352cdb..f962f4428c39 100644
--- a/kernel/rcu/srcutree.c
+++ b/kernel/rcu/srcutree.c
@@ -532,7 +532,6 @@ static void srcu_gp_end(struct srcu_struct *sp)
unsigned long flags;
unsigned long gpseq;
int idx;
- int idxnext;
unsigned long mask;
struct srcu_data *sdp;
struct srcu_node *snp;
@@ -556,7 +555,6 @@ static void srcu_gp_end(struct srcu_struct *sp)
/* Initiate callback invocation as needed. */
idx = rcu_seq_ctr(gpseq) % ARRAY_SIZE(snp->srcu_have_cbs);
- idxnext = (idx + 1) % ARRAY_SIZE(snp->srcu_have_cbs);
rcu_for_each_node_breadth_first(sp, snp) {
spin_lock_irq_rcu_node(snp);
cbs = false;