Skip to content

Commit

Permalink
rcu-nocb: Fix a couple of tree_nocb code-style nits
Browse files Browse the repository at this point in the history
This commit removes a non-value-returning "return" statement at the end
of __call_rcu_nocb_wake() and adds a blank line following declarations
in nocb_cb_can_run().

Signed-off-by: Paul E. McKenney <[email protected]>
  • Loading branch information
paulmckrcu committed Sep 13, 2021
1 parent 2431774 commit 52b030a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/rcu/tree_nocb.h
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,6 @@ static void __call_rcu_nocb_wake(struct rcu_data *rdp, bool was_alldone,
rcu_nocb_unlock_irqrestore(rdp, flags);
trace_rcu_nocb_wake(rcu_state.name, rdp->cpu, TPS("WakeNot"));
}
return;
}

/*
Expand Down Expand Up @@ -767,6 +766,7 @@ static int rcu_nocb_gp_kthread(void *arg)
static inline bool nocb_cb_can_run(struct rcu_data *rdp)
{
u8 flags = SEGCBLIST_OFFLOADED | SEGCBLIST_KTHREAD_CB;

return rcu_segcblist_test_flags(&rdp->cblist, flags);
}

Expand Down

0 comments on commit 52b030a

Please sign in to comment.