Skip to content

Commit 57721fd

Browse files
committed
rcu: Remove dead code from rcu_segcblist_insert_pend_cbs()
The rcu_segcblist_insert_pend_cbs() function currently (partially) initializes the rcu_cblist that it pulls callbacks from. However, all the resulting stores are dead because all callers pass in the address of an on-stack cblist that is not used afterwards. This commit therefore removes this pointless initialization. Signed-off-by: Paul E. McKenney <[email protected]>
1 parent 90c0189 commit 57721fd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/rcu/rcu_segcblist.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,6 @@ void rcu_segcblist_insert_pend_cbs(struct rcu_segcblist *rsclp,
381381
return; /* Nothing to do. */
382382
WRITE_ONCE(*rsclp->tails[RCU_NEXT_TAIL], rclp->head);
383383
WRITE_ONCE(rsclp->tails[RCU_NEXT_TAIL], rclp->tail);
384-
rclp->head = NULL;
385-
rclp->tail = &rclp->head;
386384
}
387385

388386
/*

0 commit comments

Comments
 (0)