提交 ef47db8e 编写于 作者: P Paul E. McKenney

rcu: Remove unused variable from rcu_torture_writer()

The oldbatch variable in rcu_torture_writer() is stored to, but never
loaded from.  This commit therefore removes it.
Signed-off-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: NJosh Triplett <josh@joshtriplett.org>
上级 d10453e9
...@@ -797,7 +797,6 @@ rcu_torture_writer(void *arg) ...@@ -797,7 +797,6 @@ rcu_torture_writer(void *arg)
{ {
bool exp; bool exp;
int i; int i;
long oldbatch = rcu_batches_completed();
struct rcu_torture *rp; struct rcu_torture *rp;
struct rcu_torture *rp1; struct rcu_torture *rp1;
struct rcu_torture *old_rp; struct rcu_torture *old_rp;
...@@ -851,7 +850,6 @@ rcu_torture_writer(void *arg) ...@@ -851,7 +850,6 @@ rcu_torture_writer(void *arg)
} }
} }
rcutorture_record_progress(++rcu_torture_current_version); rcutorture_record_progress(++rcu_torture_current_version);
oldbatch = cur_ops->completed();
rcu_stutter_wait("rcu_torture_writer"); rcu_stutter_wait("rcu_torture_writer");
} while (!kthread_should_stop() && fullstop == FULLSTOP_DONTSTOP); } while (!kthread_should_stop() && fullstop == FULLSTOP_DONTSTOP);
VERBOSE_PRINTK_STRING("rcu_torture_writer task stopping"); VERBOSE_PRINTK_STRING("rcu_torture_writer task stopping");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册