Skip to contentSkip to conversation

Staging: octeon: Add space around '+'

PATCH In review Dilek Uzulmez 2 participants 2 messages Feb 23, 2016 – Feb 26, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: octeon: Add space around '+'

Add space around operator '+'. Problem found using checkpatch.pl
CHECK: spaces preferred around that '+' (ctx:VxV)

---
 drivers/staging/octeon/ethernet-defines.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/octeon/ethernet-defines.h +1 -1
index f92e0c4..d683348 100644
@@ -40,7 +40,7 @@
 #define FAU_TOTAL_TX_TO_CLEAN (CVMX_FAU_REG_END - sizeof(uint32_t))
 #define FAU_NUM_PACKET_BUFFERS_TO_FREE (FAU_TOTAL_TX_TO_CLEAN - sizeof(uint32_t))
 
-#define TOTAL_NUMBER_OF_PORTS       (CVMX_PIP_NUM_INPUT_PORTS+1)
+#define TOTAL_NUMBER_OF_PORTS       (CVMX_PIP_NUM_INPUT_PORTS + 1)
 
 
 #endif /* __ETHERNET_DEFINES_H__ */
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 13 lines · Dilek Uzulmez

Add space around operator '+'. Problem found using checkpatch.pl
CHECK: spaces preferred around that '+' (ctx:VxV)

---
 drivers/staging/octeon/ethernet-defines.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/octeon/ethernet-defines.h +0 -0
index f92e0c4..d683348 100644

drivers/staging/octeon/ethernet-defines.h line 43

Quoted 5 lines
drivers/staging/octeon/ethernet-defines.h +1 -1
@@ -40,7 +40,7 @@
 #define FAU_TOTAL_TX_TO_CLEAN (CVMX_FAU_REG_END - sizeof(uint32_t))
 #define FAU_NUM_PACKET_BUFFERS_TO_FREE (FAU_TOTAL_TX_TO_CLEAN - sizeof(uint32_t))
 
-#define TOTAL_NUMBER_OF_PORTS       (CVMX_PIP_NUM_INPUT_PORTS+1)
+#define TOTAL_NUMBER_OF_PORTS       (CVMX_PIP_NUM_INPUT_PORTS + 1)

Patch does not apply to my tree :(