Skip to contentSkip to conversation

staging: vt6655f: rxtx: code style - Fix Lines should not end with a '('

PATCH Superseded aliya-rahmani 3 participants 3 messages Apr 13, 2022 Staging

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: vt6655f: rxtx: code style - Fix Lines should not end with a '('

From: Aliya Rahmani <[email protected]>

Removed indentation to fix the checkpatch error that lines should not end with a '('.

---
 drivers/staging/vt6655/rxtx.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/vt6655/rxtx.c +1 -2
index 53506e242a96..dce9d87d2363 100644
@@ -569,8 +569,7 @@ s_uFillDataHead(
 
 static
 void
-s_vFillRTSHead(
-	struct vnt_private *pDevice,
+s_vFillRTSHead(struct vnt_private *pDevice,
 	unsigned char byPktType,
 	void *pvRTS,
 	unsigned int cbFrameLength,
Signature · 1 line
2.25.1
#1 lore raw
Quoted 16 lines · aliya-rahmani

From: Aliya Rahmani <[email protected]>

Removed indentation to fix the checkpatch error that lines should not end with a '('.

---
 drivers/staging/vt6655/rxtx.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/vt6655/rxtx.c +0 -0
index 53506e242a96..dce9d87d2363 100644

drivers/staging/vt6655/rxtx.c s_uFillDataHead( · line 573

Quoted 7 lines
drivers/staging/vt6655/rxtx.c +1 -2
@@ -569,8 +569,7 @@ s_uFillDataHead(
 
 static
 void
-s_vFillRTSHead(
-	struct vnt_private *pDevice,
+s_vFillRTSHead(struct vnt_private *pDevice,
 	unsigned char byPktType,

Indent these lines as well and move the ) forward.

s_vFillRTSHead(struct vnt_private *pDevice,
unsigned char byPktType,
...
unsigned char byFBOption)
{

regards,
dan carpenter

#2 lore raw
In reply to aliya-rahmani
Quoted 4 lines · aliya-rahmani

From: Aliya Rahmani <[email protected]>

Removed indentation to fix the checkpatch error that lines should not end with a '('.

The log message should be in the imperative, so it would be "Remove", not "Removed".

Maybe it would be nice to keep the parameters aligned, thus indent the others more?

In another patch you could improve the variable names and the function name. I'm not sure why static and void have to be on separate lines either.

julia

Quoted 26 lines
---
 drivers/staging/vt6655/rxtx.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/vt6655/rxtx.c +1 -3
index 53506e242a96..dce9d87d2363 100644
@@ -569,8 +569,7 @@ s_uFillDataHead(
 
 static
 void
-s_vFillRTSHead(
-	struct vnt_private *pDevice,
+s_vFillRTSHead(struct vnt_private *pDevice,
 	unsigned char byPktType,
 	void *pvRTS,
 	unsigned int cbFrameLength,
--

2.25.1