aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Falak R Wani <[email protected]>2016-05-05 15:21:19 +0530
committerIngo Molnar <[email protected]>2016-05-09 08:39:52 +0200
commit8c5e95548d41a48b1eb2be741107a259251ebd86 (patch)
tree05e079c7022c4606915dd7286a4ba36a10e8ec50
parent885e542ce827f5f102fe9628d63c6430c8b7ab2c (diff)
sched/core: Remove unused variable
Remove unused variable 'ret', and directly return 0. Signed-off-by: Muhammad Falak R Wani <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r--kernel/sched/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 71c5a753e6e9..a6d3e7a9c0a9 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -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)
{
unsigned long flags;
- int i, ret = 0;
+ int i;
raw_spin_lock_irqsave(&def_rt_bandwidth.rt_runtime_lock, flags);
for_each_possible_cpu(i) {
@@ -8031,7 +8031,7 @@ static int sched_rt_global_constraints(void)
}
raw_spin_unlock_irqrestore(&def_rt_bandwidth.rt_runtime_lock, flags);
- return ret;
+ return 0;
}
#endif /* CONFIG_RT_GROUP_SCHED */