[PATCH 2/2] sched/fair: replace bare 'unsigned' with 'unsigned int'

Zhan Xusheng posted 2 patches 1 month, 3 weeks ago
[PATCH 2/2] sched/fair: replace bare 'unsigned' with 'unsigned int'
Posted by Zhan Xusheng 1 month, 3 weeks ago
Replace 'unsigned' casts with explicit 'unsigned int'
casts to comply with kernel coding style.

No functional change intended.

Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>
---
 kernel/sched/fair.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 56dd655d9bc2..4e6a57708229 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -7861,7 +7861,7 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target)
 		 */
 		if (sd) {
 			i = select_idle_capacity(p, sd, target);
-			return ((unsigned)i < nr_cpumask_bits) ? i : target;
+			return ((unsigned int)i < nr_cpumask_bits) ? i : target;
 		}
 	}
 
@@ -7880,7 +7880,7 @@ static int select_idle_sibling(struct task_struct *p, int prev, int target)
 	}
 
 	i = select_idle_cpu(p, sd, has_idle_core, target);
-	if ((unsigned)i < nr_cpumask_bits)
+	if ((unsigned int)i < nr_cpumask_bits)
 		return i;
 
 	/*
-- 
2.43.0