Skip to content

Commit 55fbe86

Browse files
committed
rcu: Remove initialized but unused rnp from check_slow_task()
This commit removes the variable rnp from check_slow_task(), which is defined, assigned to, but not otherwise used. Reported-by: kbuild test robot <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 3c8920e commit 55fbe86

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/rcu/tree_stall.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,12 @@ struct rcu_stall_chk_rdr {
237237
*/
238238
static bool check_slow_task(struct task_struct *t, void *arg)
239239
{
240-
struct rcu_node *rnp;
241240
struct rcu_stall_chk_rdr *rscrp = arg;
242241

243242
if (task_curr(t))
244243
return false; // It is running, so decline to inspect it.
245244
rscrp->nesting = t->rcu_read_lock_nesting;
246245
rscrp->rs = t->rcu_read_unlock_special;
247-
rnp = t->rcu_blocked_node;
248246
rscrp->on_blkd_list = !list_empty(&t->rcu_node_entry);
249247
return true;
250248
}

0 commit comments

Comments
 (0)