Staging: rtl8188eu: core: rtw_efuse.c: Line over 80 characters.
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
@@ -794,13 +794,16 @@ bool Efuse_PgPacketWrite(struct adapter *pAdapter, u8 offset, u8 word_en, u8 *pDhal_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
Greg KH
maintainerQuoted 13 lines · Sanjana Sanikommu
Fix coding style issues, which solves checkpatch.pl warning:
"WARNING: line over 80 characters".Signed-off-by Sanjana Sanikommu <[email protected]>--- drivers/staging/rtl8188eu/core/rtw_efuse.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)drivers/staging/rtl8188eu/core/rtw_efuse.c +0
-0
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 *pDhal_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
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.cdrivers/staging/rtl8188eu/core/rtw_efuse.c bool Efuse_PgPacketWrite(struct adapter *pAdapter,
Quoted 4 lines
index
51c3dd6d7ffb..a5d34b85d9c5100644drivers/staging/rtl8188eu/core/rtw_efuse.c +0
-0@@ -794,13 +794,16 @@ bool Efuse_PgPacketWrite(struct adapter *pAdapter,u8 offset, u8
word_en, u8 *pDQuoted 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