All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched: Fix spacing issues in coding style
@ 2012-07-12  7:03 Ying Xue
  2012-07-12 14:01 ` Peter Zijlstra
  2012-07-26 15:09 ` [tip:sched/urgent] sched: Fix minor code style issues tip-bot for Ying Xue
  0 siblings, 2 replies; 3+ messages in thread
From: Ying Xue @ 2012-07-12  7:03 UTC (permalink / raw)
  To: a.p.zijlstra; +Cc: linux-kernel

Delete redudant spaces between type name and data name or
operators.

Signed-off-by: Ying Xue <ying.xue0@gmail.com>
---
 kernel/sched/cpupri.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/kernel/sched/cpupri.c b/kernel/sched/cpupri.c
index d72586f..23aa789 100644
--- a/kernel/sched/cpupri.c
+++ b/kernel/sched/cpupri.c
@@ -65,8 +65,8 @@ static int convert_prio(int prio)
 int cpupri_find(struct cpupri *cp, struct task_struct *p,
 		struct cpumask *lowest_mask)
 {
-	int                  idx      = 0;
-	int                  task_pri = convert_prio(p->prio);
+	int idx = 0;
+	int task_pri = convert_prio(p->prio);
 
 	if (task_pri >= MAX_RT_PRIO)
 		return 0;
@@ -137,9 +137,9 @@ int cpupri_find(struct cpupri *cp, struct task_struct *p,
  */
 void cpupri_set(struct cpupri *cp, int cpu, int newpri)
 {
-	int                 *currpri = &cp->cpu_to_pri[cpu];
-	int                  oldpri  = *currpri;
-	int                  do_mb = 0;
+	int *currpri = &cp->cpu_to_pri[cpu];
+	int oldpri = *currpri;
+	int do_mb = 0;
 
 	newpri = convert_prio(newpri);
 
-- 
1.7.1


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

* Re: [PATCH] sched: Fix spacing issues in coding style
  2012-07-12  7:03 [PATCH] sched: Fix spacing issues in coding style Ying Xue
@ 2012-07-12 14:01 ` Peter Zijlstra
  2012-07-26 15:09 ` [tip:sched/urgent] sched: Fix minor code style issues tip-bot for Ying Xue
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Zijlstra @ 2012-07-12 14:01 UTC (permalink / raw)
  To: Ying Xue; +Cc: linux-kernel

On Thu, 2012-07-12 at 15:03 +0800, Ying Xue wrote:
> Delete redudant spaces between type name and data name or
> operators.
> 
> 

Thanks!

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

* [tip:sched/urgent] sched: Fix minor code style issues
  2012-07-12  7:03 [PATCH] sched: Fix spacing issues in coding style Ying Xue
  2012-07-12 14:01 ` Peter Zijlstra
@ 2012-07-26 15:09 ` tip-bot for Ying Xue
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Ying Xue @ 2012-07-26 15:09 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, ying.xue0, hpa, mingo, a.p.zijlstra, tglx

Commit-ID:  014acbf0d5c8445e0ff88ae60edd676dd9cc461c
Gitweb:     http://git.kernel.org/tip/014acbf0d5c8445e0ff88ae60edd676dd9cc461c
Author:     Ying Xue <ying.xue0@gmail.com>
AuthorDate: Thu, 12 Jul 2012 15:03:42 +0800
Committer:  Ingo Molnar <mingo@kernel.org>
CommitDate: Thu, 26 Jul 2012 11:47:00 +0200

sched: Fix minor code style issues

Delete redudant spaces between type name and data name or operators.

Signed-off-by: Ying Xue <ying.xue0@gmail.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1342076622-6606-1-git-send-email-ying.xue0@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 kernel/sched/cpupri.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/kernel/sched/cpupri.c b/kernel/sched/cpupri.c
index d72586f..23aa789 100644
--- a/kernel/sched/cpupri.c
+++ b/kernel/sched/cpupri.c
@@ -65,8 +65,8 @@ static int convert_prio(int prio)
 int cpupri_find(struct cpupri *cp, struct task_struct *p,
 		struct cpumask *lowest_mask)
 {
-	int                  idx      = 0;
-	int                  task_pri = convert_prio(p->prio);
+	int idx = 0;
+	int task_pri = convert_prio(p->prio);
 
 	if (task_pri >= MAX_RT_PRIO)
 		return 0;
@@ -137,9 +137,9 @@ int cpupri_find(struct cpupri *cp, struct task_struct *p,
  */
 void cpupri_set(struct cpupri *cp, int cpu, int newpri)
 {
-	int                 *currpri = &cp->cpu_to_pri[cpu];
-	int                  oldpri  = *currpri;
-	int                  do_mb = 0;
+	int *currpri = &cp->cpu_to_pri[cpu];
+	int oldpri = *currpri;
+	int do_mb = 0;
 
 	newpri = convert_prio(newpri);
 

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

end of thread, other threads:[~2012-07-26 15:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-12  7:03 [PATCH] sched: Fix spacing issues in coding style Ying Xue
2012-07-12 14:01 ` Peter Zijlstra
2012-07-26 15:09 ` [tip:sched/urgent] sched: Fix minor code style issues tip-bot for Ying Xue

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.