Skip to contentSkip to conversation

kernel: pid: Fix unsigned int to bare use of unsigned

PATCH New Gargi Sharma 1 participant 1 message Mar 26, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel: pid: Fix unsigned int to bare use of unsigned

Fix up the checkpatch warning: Prefer 'unsigned int' to bare use of 'unsigned'.

---
 kernel/pid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/pid.c +1 -1
index 8fc5b9e..4836f4c 100644
@@ -122,7 +122,7 @@ static int pid_before(int base, int a, int b)
 	 * (a - base + MAXUINT) % MAXUINT < (b - base + MAXUINT) % MAXUINT
 	 * and that mapping orders 'a' and 'b' with respect to 'base'.
 	 */
-	return (unsigned)(a - base) < (unsigned)(b - base);
+	return (unsigned int)(a - base) < (unsigned int)(b - base);
 }
 
 /*
Signature · 1 line
2.7.4