rcu: Remove unused rdp local from synchronize_rcu_expedited()
authorJiang Biao <benbjiang@tencent.com>
Tue, 23 Apr 2019 01:21:55 +0000 (09:21 +0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 28 May 2019 15:48:19 +0000 (08:48 -0700)
Because rdp is initialized but never used in synchronize_rcu_expedited(),
this commit removes it.

Signed-off-by: Jiang Biao <benbjiang@tencent.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
kernel/rcu/tree_exp.h

index e0c928d04be5f8fa50b9343678c3e2e16aa47188..8e539710721a6d6cc5dfebf3f0cc99d2fd925211 100644 (file)
@@ -793,7 +793,6 @@ static int rcu_print_task_exp_stall(struct rcu_node *rnp)
  */
 void synchronize_rcu_expedited(void)
 {
-       struct rcu_data *rdp;
        struct rcu_exp_work rew;
        struct rcu_node *rnp;
        unsigned long s;
@@ -830,7 +829,6 @@ void synchronize_rcu_expedited(void)
        }
 
        /* Wait for expedited grace period to complete. */
-       rdp = per_cpu_ptr(&rcu_data, raw_smp_processor_id());
        rnp = rcu_get_root();
        wait_event(rnp->exp_wq[rcu_seq_ctr(s) & 0x3],
                   sync_exp_work_done(s));