Skip to contentSkip to conversation

staging: octeon: Add space around '+'

PATCH In review Burcin Akalin 2 participants 4 messages Oct 30, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 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
#1 lore raw

PATCH 2/2 staging: octeon: Do not use multiple blank lines.

Remove multiple blank lines. Problem found using checkpatch.pl "CHECK: Please don't use multiple blank lines"

---
 drivers/staging/octeon/ethernet-defines.h | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/octeon/ethernet-defines.h +0 -1
index d683348..e2ad5b6 100644
@@ -42,5 +42,4 @@
 
 #define TOTAL_NUMBER_OF_PORTS       (CVMX_PIP_NUM_INPUT_PORTS + 1)
 
-
 #endif /* __ETHERNET_DEFINES_H__ */
Signature · 1 line
1.9.1
#3 lore raw
In reply to Burcin Akalin
Quoted 6 lines · Burcin Akalin

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

---

I think you are not working against the current staging tree. This patch will also not apply because of some other changes in that file.

regards
sudip

#2 lore raw

Re: [Outreachy kernel] [PATCH 2/2] staging: octeon: Do not use multiple blank lines.

In reply to Burcin Akalin
Quoted 5 lines · Burcin Akalin

Remove multiple blank lines. Problem found using checkpatch.pl "CHECK: Please don't use multiple blank lines"

---

This also you have sent previously and has already been applied by Greg. 9a28617fbc99 ("staging: octeon: Do not use multiple blank lines.")

regards
sudip