mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sched/core: remove unused variable
@ 2016-05-05  9:51 Muhammad Falak R Wani
  2016-05-09  6:42 ` [tip:sched/core] sched/core: Remove " tip-bot for Muhammad Falak R Wani
  0 siblings, 1 reply; 2+ messages in thread
From: Muhammad Falak R Wani @ 2016-05-05  9:51 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Peter Zijlstra, linux-kernel

Remove unused variable ret, and directly return 0.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
---
 kernel/sched/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 8b489fc..1e4f727 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -7891,7 +7891,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) {
@@ -7903,7 +7903,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 */
 
-- 
1.9.1

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tip:sched/core] sched/core: Remove unused variable
  2016-05-05  9:51 [PATCH] sched/core: remove unused variable Muhammad Falak R Wani
@ 2016-05-09  6:42 ` tip-bot for Muhammad Falak R Wani
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Muhammad Falak R Wani @ 2016-05-09  6:42 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: peterz, tglx, torvalds, falakreyaz, linux-kernel, mingo, hpa

Commit-ID:  8c5e95548d41a48b1eb2be741107a259251ebd86
Gitweb:     http://git.kernel.org/tip/8c5e95548d41a48b1eb2be741107a259251ebd86
Author:     Muhammad Falak R Wani <falakreyaz@gmail.com>
AuthorDate: Thu, 5 May 2016 15:21:19 +0530
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Mon, 9 May 2016 08:39:52 +0200

sched/core: Remove unused variable

Remove unused variable 'ret', and directly return 0.

Signed-off-by: Muhammad 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.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 kernel/sched/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 71c5a75..a6d3e7a 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 */
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-05-09  6:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-05  9:51 [PATCH] sched/core: remove unused variable Muhammad Falak R Wani
2016-05-09  6:42 ` [tip:sched/core] sched/core: Remove " tip-bot for Muhammad Falak R Wani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome