Commit 8c5e9554 authored by Muhammad Falak R Wani's avatar Muhammad Falak R Wani Committed by Ingo Molnar

sched/core: Remove unused variable

Remove unused variable 'ret', and directly return 0.
Signed-off-by: default avatarMuhammad Falak R Wani <falakreyaz@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1462441879-10092-1-git-send-email-falakreyaz@gmail.comSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent 885e542c
...@@ -8019,7 +8019,7 @@ static int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk) ...@@ -8019,7 +8019,7 @@ static int sched_rt_can_attach(struct task_group *tg, struct task_struct *tsk)
static int sched_rt_global_constraints(void) static int sched_rt_global_constraints(void)
{ {
unsigned long flags; unsigned long flags;
int i, ret = 0; int i;
raw_spin_lock_irqsave(&def_rt_bandwidth.rt_runtime_lock, flags); raw_spin_lock_irqsave(&def_rt_bandwidth.rt_runtime_lock, flags);
for_each_possible_cpu(i) { for_each_possible_cpu(i) {
...@@ -8031,7 +8031,7 @@ static int sched_rt_global_constraints(void) ...@@ -8031,7 +8031,7 @@ static int sched_rt_global_constraints(void)
} }
raw_spin_unlock_irqrestore(&def_rt_bandwidth.rt_runtime_lock, flags); raw_spin_unlock_irqrestore(&def_rt_bandwidth.rt_runtime_lock, flags);
return ret; return 0;
} }
#endif /* CONFIG_RT_GROUP_SCHED */ #endif /* CONFIG_RT_GROUP_SCHED */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment