From: Paul E. McKenney Date: Thu, 13 Jun 2013 22:30:00 +0000 (-0700) Subject: rcu: Remove unused variable from rcu_torture_writer() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ef47db8e99d53f0da5270accd2ee71bcf9e25f11;p=linux-beck.git 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 Reviewed-by: Josh Triplett --- 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) { bool exp; int i; - long oldbatch = rcu_batches_completed(); struct rcu_torture *rp; struct rcu_torture *rp1; struct rcu_torture *old_rp; @@ -851,7 +850,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");