Skip to contentSkip to conversation

sched: Fix spacing issues in coding style

PATCH In review Ying Xue 2 participants 3 messages Jul 12, 2012 – Jul 26, 2012 Scheduler

lore
Share & tools
lore

Ying Xue

author
#0 lore raw

PATCH 1/1 sched: Fix spacing issues in coding style

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

---
 kernel/sched/cpupri.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
kernel/sched/cpupri.c +5 -5
index d72586f..23aa789 100644
@@ -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);
 
Signature · 1 line
1.7.1
#1 lore raw
Quoted 4 lines · Ying Xue

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

Thanks!

#2 lore raw

[tip:sched/urgent] sched: Fix minor code style issues

In reply to Ying Xue
Commit-ID:  014acbf0d5c8445e0ff88ae60edd676dd9cc461c
Gitweb:     http://git.kernel.org/tip/014acbf0d5c8445e0ff88ae60edd676dd9cc461c
Author:     Ying Xue <[email protected]>
AuthorDate: Thu, 12 Jul 2012 15:03:42 +0800
Committer:  Ingo Molnar <[email protected]>
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.

---
 kernel/sched/cpupri.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
kernel/sched/cpupri.c +5 -5
index d72586f..23aa789 100644
@@ -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);