Skip to contentSkip to conversation

kernel: Add spaces around '=' operator

PATCH In review Bhaskar Singh 2 participants 2 messages Aug 17, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel: Add spaces around '=' operator

This patch fixes the checkpatch.pl ERROR:

ERROR: spaces required around that '==' (ctx:VxV)

---
 kernel/acct.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/acct.c +1 -1
index addf7732fb56..6dc0a55b575c 100644
@@ -449,7 +449,7 @@ static void fill_ac(acct_t *ac)
 #endif
 	do_div(elapsed, AHZ);
 	ac->ac_btime = get_seconds() - elapsed;
-#if ACCT_VERSION==2
+#if ACCT_VERSION == 2
 	ac->ac_ahz = AHZ;
 #endif
 
Signature · 1 line
2.16.4
#1 lore raw
Quoted 14 lines · Bhaskar Singh

This patch fixes the checkpatch.pl ERROR:

ERROR: spaces required around that '==' (ctx:VxV)

---
 kernel/acct.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/acct.c +0 -0
index addf7732fb56..6dc0a55b575c 100644

kernel/acct.c static void fill_ac(acct_t *ac) · line 452

Quoted 5 lines
kernel/acct.c +1 -1
@@ -449,7 +449,7 @@ static void fill_ac(acct_t *ac)
 #endif
 	do_div(elapsed, AHZ);
 	ac->ac_btime = get_seconds() - elapsed;
-#if ACCT_VERSION==2
+#if ACCT_VERSION == 2

checkpatch is a guide, not a fast rule, and might not matter here.

Please stick to checkpatch fixes in drivers/staging/ only, not any other part of the kernel unless you know the maintainer accepts such patches.

thanks,

greg k-h