mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-18 16:44:33 +00:00
rcu: Remove unused local variable "cpu"
One danger of using __maybe_unused is that the compiler doesn't yell at you when you remove the last reference, witness rcu_bind_gp_kthread() and its local variable "cpu". This commit removes this local variable. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
This commit is contained in:
parent
164ba3fc48
commit
ab6b82147f
1 changed files with 0 additions and 2 deletions
|
@ -2670,8 +2670,6 @@ static bool rcu_nohz_full_cpu(struct rcu_state *rsp)
|
||||||
*/
|
*/
|
||||||
static void rcu_bind_gp_kthread(void)
|
static void rcu_bind_gp_kthread(void)
|
||||||
{
|
{
|
||||||
int __maybe_unused cpu;
|
|
||||||
|
|
||||||
if (!tick_nohz_full_enabled())
|
if (!tick_nohz_full_enabled())
|
||||||
return;
|
return;
|
||||||
housekeeping_affine(current, HK_FLAG_RCU);
|
housekeeping_affine(current, HK_FLAG_RCU);
|
||||||
|
|
Loading…
Reference in a new issue