lkml.org 
[lkml]   [2013]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH tip/core/rcu 4/5] rcu: Remove unused variable from rcu_torture_writer()
Date
From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>

The oldbatch variable in rcu_torture_writer() is stored to, but never
loaded from. This commit therefore removes it.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
---
kernel/rcutorture.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
index be50ebe..7d42d13 100644
--- a/kernel/rcutorture.c
+++ b/kernel/rcutorture.c
@@ -800,7 +800,6 @@ rcu_torture_writer(void *arg)
{
bool exp;
int i;
- long oldbatch = rcu_batches_completed();
struct rcu_torture *rp;
struct rcu_torture *rp1;
struct rcu_torture *old_rp;
@@ -854,7 +853,6 @@ rcu_torture_writer(void *arg)
}
}
rcutorture_record_progress(++rcu_torture_current_version);
- oldbatch = cur_ops->completed();
rcu_stutter_wait("rcu_torture_writer");
} while (!kthread_should_stop() && fullstop == FULLSTOP_DONTSTOP);
VERBOSE_PRINTK_STRING("rcu_torture_writer task stopping");
--
1.8.1.5


\
 
 \ /
  Last update: 2013-08-18 04:41    [W:0.116 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site