mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: tip-bot for Muhammad Falak R Wani <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: peterz@infradead.org, tglx@linutronix.de,
	torvalds@linux-foundation.org, falakreyaz@gmail.com,
	linux-kernel@vger.kernel.org, mingo@kernel.org, hpa@zytor.com
Subject: [tip:sched/core] sched/core: Remove unused variable
Date: Sun, 8 May 2016 23:42:42 -0700	[thread overview]
Message-ID: <tip-8c5e95548d41a48b1eb2be741107a259251ebd86@git.kernel.org> (raw)
In-Reply-To: <1462441879-10092-1-git-send-email-falakreyaz@gmail.com>

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 */
 

      reply	other threads:[~2016-05-09  6:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-05  9:51 [PATCH] sched/core: remove " Muhammad Falak R Wani
2016-05-09  6:42 ` tip-bot for Muhammad Falak R Wani [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tip-8c5e95548d41a48b1eb2be741107a259251ebd86@git.kernel.org \
    --to=tipbot@zytor.com \
    --cc=falakreyaz@gmail.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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