lkml.org 
[lkml]   [2023]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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)

Signed-off-by: KaiLong Wang <wangkailong@jari.cn>
---
include/net/snmp.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/net/snmp.h b/include/net/snmp.h
index 468a67836e2f..92e92bebde2c 100644
--- a/include/net/snmp.h
+++ b/include/net/snmp.h
@@ -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 { \
--
2.17.1
\
 
 \ /
  Last update: 2023-09-28 05:16    [W:0.055 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site