Skip to contentSkip to conversation

net: snmp: Clean up errors in snmp.h

PATCH In review KaiLong Wang 2 participants 2 messages Sep 28, 2023 – Oct 2, 2023

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

PATCH 1/1 net: snmp: Clean up errors in snmp.h

Fix the following errors reported by checkpatch:

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

---
 include/net/snmp.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/net/snmp.h +2 -2
index 468a67836e2f..92e92bebde2c 100644
@@ -31,7 +31,7 @@ struct snmp_mib {
 	int entry;
 };
 
-#define SNMP_MIB_ITEM(_name,_entry)	{	\
+#define SNMP_MIB_ITEM(_name, _entry)	{	\
 	.name = _name,				\
 	.entry = _entry,			\
 }
@@ -155,7 +155,7 @@ struct linux_tls_mib {
 	} while (0)
 
 
-#if BITS_PER_LONG==32
+#if BITS_PER_LONG == 32
 
 #define __SNMP_ADD_STATS64(mib, field, addend) 				\
 	do {								\
Signature · 1 line
2.17.1
reviewer
#1 lore raw
Quoted 6 lines · KaiLong Wang

Fix the following errors reported by checkpatch:

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

Hi KaiLong Wang,

unfortunately, patches that only contain checkpatch clean-ups for Networking code are not accepted.

Signature · 1 line
pw-bot: rejected