Skip to contentSkip to conversation

Staging: rtl8188eu: core: rtw_efuse.c: Line over 80 characters.

PATCH In review Sanjana Sanikommu 2 participants 3 messages Mar 18, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8188eu: core: rtw_efuse.c: Line over 80 characters.

Fix coding style issues, which solves checkpatch.pl warning:
"WARNING: line over 80 characters".

---
 drivers/staging/rtl8188eu/core/rtw_efuse.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/staging/rtl8188eu/core/rtw_efuse.c +6 -3
index 51c3dd6d7ffb..a5d34b85d9c5 100644
@@ -794,13 +794,16 @@ bool Efuse_PgPacketWrite(struct adapter *pAdapter, u8 offset, u8 word_en, u8 *pD
 
 	hal_EfuseConstructPGPkt(offset, word_en, pData, &targetPkt);
 
-	if (!hal_EfusePartialWriteCheck(pAdapter, efuseType, &startAddr, &targetPkt))
+	if (!hal_EfusePartialWriteCheck(pAdapter, efuseType,
+					&startAddr, &targetPkt))
 		return false;
 
-	if (!hal_EfusePgPacketWriteHeader(pAdapter, efuseType, &startAddr, &targetPkt))
+	if (!hal_EfusePgPacketWriteHeader(pAdapter, efuseType,
+					  &startAddr, &targetPkt))
 		return false;
 
-	if (!hal_EfusePgPacketWriteData(pAdapter, efuseType, &startAddr, &targetPkt))
+	if (!hal_EfusePgPacketWriteData(pAdapter, efuseType,
+					&startAddr, &targetPkt))
 		return false;
 
 	return true;
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 13 lines · Sanjana Sanikommu

Fix coding style issues, which solves checkpatch.pl warning:
"WARNING: line over 80 characters".

---
 drivers/staging/rtl8188eu/core/rtw_efuse.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/staging/rtl8188eu/core/rtw_efuse.c +0 -0
index 51c3dd6d7ffb..a5d34b85d9c5 100644

drivers/staging/rtl8188eu/core/rtw_efuse.c bool Efuse_PgPacketWrite(struct adapter *pAdapter, u8 offset, u8 word_en, u8 *pD · line 798

Quoted 6 lines
drivers/staging/rtl8188eu/core/rtw_efuse.c +2 -1
@@ -794,13 +794,16 @@ bool Efuse_PgPacketWrite(struct adapter *pAdapter, u8 offset, u8 word_en, u8 *pD
 
 	hal_EfuseConstructPGPkt(offset, word_en, pData, &targetPkt);
 
-	if (!hal_EfusePartialWriteCheck(pAdapter, efuseType, &startAddr, &targetPkt))
+	if (!hal_EfusePartialWriteCheck(pAdapter, efuseType,
+					&startAddr, &targetPkt))

Why not use the full line:
if (!hal_EfusePartialWriteCheck(pAdapter, efuseType, &startAddr,
&targetPkt))

Only wrap where you _have_ to wrap, don't make lines shorter than they have to unless it makes a lot of sense to.

thanks,

greg k-h

#2 lore raw
Quoted 18 lines · gregkh

Review

Quoted 9 lines · Sanjana Sanikommu

Fix coding style issues, which solves checkpatch.pl warning:
"WARNING: line over 80 characters".

Signed-off-by Sanjana Sanikommu <[email protected] <javascript:>>

---

 drivers/staging/rtl8188eu/core/rtw_efuse.c | 9 ++++++--- 
 1 file changed, 6 insertions(+), 3 deletions(-) 
(quoted diff) +0 -0

b/drivers/staging/rtl8188eu/core/rtw_efuse.c

drivers/staging/rtl8188eu/core/rtw_efuse.c bool Efuse_PgPacketWrite(struct adapter *pAdapter,

Quoted 4 lines

index 51c3dd6d7ffb..a5d34b85d9c5 100644

drivers/staging/rtl8188eu/core/rtw_efuse.c +0 -0
@@ -794,13 +794,16 @@ bool Efuse_PgPacketWrite(struct adapter *pAdapter, 

u8 offset, u8 word_en, u8 *pD

Quoted 1 line
Quoted 9 lines
Quoted 3 lines
         hal_EfuseConstructPGPkt(offset, word_en, pData, &targetPkt); 

- if (!hal_EfusePartialWriteCheck(pAdapter, efuseType,

&startAddr, &targetPkt))

drivers/staging/rtl8188eu/core/rtw_efuse.c

Quoted 2 lines
drivers/staging/rtl8188eu/core/rtw_efuse.c +2 -0
+        if (!hal_EfusePartialWriteCheck(pAdapter, efuseType, 
+                                        &startAddr, &targetPkt)) 

Why not use the full line:

To fix coding style issue I thought of splitting the line over 80 chars.

if (!hal_EfusePartialWriteCheck(pAdapter, efuseType, &startAddr,

Quoted 4 lines

&targetPkt))

Only wrap where you _have_ to wrap, don't make lines shorter than they have to unless it makes a lot of sense to.

Fine I would put them in single line.
Thank you
Sanjana

Quoted 6 lines

thanks,

greg k-h