Skip to contentSkip to conversation

m68k: coldfire: Prefer unsigned int to bare use of unsigned

PATCH In review Jingjing Liu 2 participants 2 messages Nov 3, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m68k: coldfire: Prefer unsigned int to bare use of unsigned

Fix checkpatch warnings:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

---
 arch/m68k/coldfire/m520x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/m68k/coldfire/m520x.c +1 -1
index d2f96b40aee1..dca89214bbc6 100644
@@ -106,7 +106,7 @@ static struct clk * const disable_clks[] __initconst = {
 
 static void __init m520x_clk_init(void)
 {
-	unsigned i;
+	unsigned int i;
 
 	/* make sure these clocks are enabled */
 	for (i = 0; i < ARRAY_SIZE(enable_clks); ++i)
Signature · 1 line
2.33.1
#1 lore raw
Quoted 4 lines · Jingjing Liu

Fix checkpatch warnings:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

As I just wrote elsewhere:

Please don't run checkpatch.pl on code that's already in the kernel. Use it to check your own patches before submitting them.

If you want to practise the patch submission process you can do so in drivers/staging/ where "clean ups" such as this one are currently accepted.

Johan