diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-06-13 18:30:00 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2013-08-20 14:38:43 -0400 |
commit | ef47db8e99d53f0da5270accd2ee71bcf9e25f11 (patch) | |
tree | 6c4c5fe4c46e4c5d016821e9c13e8426033ca33e | |
parent | d10453e9742f4711b004caae7741476073b4f603 (diff) |
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: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
-rw-r--r-- | kernel/rcutorture.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c index e3a1244eeb56..20ce3b6f9aa6 100644 --- a/kernel/rcutorture.c +++ b/kernel/rcutorture.c | |||
@@ -797,7 +797,6 @@ rcu_torture_writer(void *arg) | |||
797 | { | 797 | { |
798 | bool exp; | 798 | bool exp; |
799 | int i; | 799 | int i; |
800 | long oldbatch = rcu_batches_completed(); | ||
801 | struct rcu_torture *rp; | 800 | struct rcu_torture *rp; |
802 | struct rcu_torture *rp1; | 801 | struct rcu_torture *rp1; |
803 | struct rcu_torture *old_rp; | 802 | struct rcu_torture *old_rp; |
@@ -851,7 +850,6 @@ rcu_torture_writer(void *arg) | |||
851 | } | 850 | } |
852 | } | 851 | } |
853 | rcutorture_record_progress(++rcu_torture_current_version); | 852 | rcutorture_record_progress(++rcu_torture_current_version); |
854 | oldbatch = cur_ops->completed(); | ||
855 | rcu_stutter_wait("rcu_torture_writer"); | 853 | rcu_stutter_wait("rcu_torture_writer"); |
856 | } while (!kthread_should_stop() && fullstop == FULLSTOP_DONTSTOP); | 854 | } while (!kthread_should_stop() && fullstop == FULLSTOP_DONTSTOP); |
857 | VERBOSE_PRINTK_STRING("rcu_torture_writer task stopping"); | 855 | VERBOSE_PRINTK_STRING("rcu_torture_writer task stopping"); |