* [PATCH v2 0/2] Fix checkpatch warnings
@ 2015-10-11 16:50 Shivani Bhardwaj
2015-10-11 16:51 ` [PATCH v2 1/2] Staging: vt6655: mac: Remove character limit warning Shivani Bhardwaj
2015-10-11 16:51 ` [PATCH v2 2/2] Staging: vt6655: mac: Remove unnecessary braces Shivani Bhardwaj
0 siblings, 2 replies; 5+ messages in thread
From: Shivani Bhardwaj @ 2015-10-11 16:50 UTC (permalink / raw)
To: outreachy-kernel; +Cc: outreachy-kernel
This patch removes the warnings about character limit and unnecessary code.
After applying this patch, the file shows less warnings when checked against
checkpatch script.
Shivani Bhardwaj (2):
Staging: vt6655: mac: Remove character limit warning
Staging: vt6655: mac: Remove unnecessary braces
drivers/staging/vt6655/mac.c | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
--
2.1.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/2] Staging: vt6655: mac: Remove character limit warning
2015-10-11 16:50 [PATCH v2 0/2] Fix checkpatch warnings Shivani Bhardwaj
@ 2015-10-11 16:51 ` Shivani Bhardwaj
2015-10-12 17:06 ` [Outreachy kernel] " Daniel Baluta
2015-10-11 16:51 ` [PATCH v2 2/2] Staging: vt6655: mac: Remove unnecessary braces Shivani Bhardwaj
1 sibling, 1 reply; 5+ messages in thread
From: Shivani Bhardwaj @ 2015-10-11 16:51 UTC (permalink / raw)
To: outreachy-kernel; +Cc: outreachy-kernel
Break the lines with over 80 characters into sensible chunks of data.
Fixes the chackpacth warning: line over 80 characters
Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
drivers/staging/vt6655/mac.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/vt6655/mac.c b/drivers/staging/vt6655/mac.c
index 3dfd333..f6774d3 100644
--- a/drivers/staging/vt6655/mac.c
+++ b/drivers/staging/vt6655/mac.c
@@ -46,9 +46,9 @@
* MACvTimer0MicroSDelay - Micro Second Delay Loop by MAC
*
* Revision History:
- * 08-22-2003 Kyle Hsu : Porting MAC functions from sim53
- * 09-03-2003 Bryan YC Fan : Add MACvClearBusSusInd()& MACvEnableBusSusEn()
- * 09-18-2003 Jerry Chen : Add MACvSetKeyEntry & MACvDisableKeyEntry
+ * 08-22-2003 Kyle Hsu : Porting MAC functions from sim53
+ * 09-03-2003 Bryan YC Fan : Add MACvClearBusSusInd()& MACvEnableBusSusEn()
+ * 09-18-2003 Jerry Chen : Add MACvSetKeyEntry & MACvDisableKeyEntry
*
*/
@@ -326,7 +326,8 @@ bool MACbSoftwareReset(void __iomem *dwIoBase)
*/
bool MACbSafeSoftwareReset(void __iomem *dwIoBase)
{
- unsigned char abyTmpRegData[MAC_MAX_CONTEXT_SIZE_PAGE0+MAC_MAX_CONTEXT_SIZE_PAGE1];
+ unsigned char abyTmpRegData[MAC_MAX_CONTEXT_SIZE_PAGE0 +
+ MAC_MAX_CONTEXT_SIZE_PAGE1];
bool bRetVal;
/* PATCH....
@@ -565,7 +566,8 @@ void MACvInitialize(void __iomem *dwIoBase)
* Return Value: none
*
*/
-void MACvSetCurrRx0DescAddr(void __iomem *dwIoBase, unsigned long dwCurrDescAddr)
+void MACvSetCurrRx0DescAddr(void __iomem *dwIoBase,
+ unsigned long dwCurrDescAddr)
{
unsigned short ww;
unsigned char byData;
@@ -600,7 +602,8 @@ void MACvSetCurrRx0DescAddr(void __iomem *dwIoBase, unsigned long dwCurrDescAddr
* Return Value: none
*
*/
-void MACvSetCurrRx1DescAddr(void __iomem *dwIoBase, unsigned long dwCurrDescAddr)
+void MACvSetCurrRx1DescAddr(void __iomem *dwIoBase,
+ unsigned long dwCurrDescAddr)
{
unsigned short ww;
unsigned char byData;
--
2.1.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [Outreachy kernel] [PATCH v2 1/2] Staging: vt6655: mac: Remove character limit warning
2015-10-11 16:51 ` [PATCH v2 1/2] Staging: vt6655: mac: Remove character limit warning Shivani Bhardwaj
@ 2015-10-12 17:06 ` Daniel Baluta
2015-10-12 17:31 ` Shivani Bhardwaj
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Baluta @ 2015-10-12 17:06 UTC (permalink / raw)
To: Shivani Bhardwaj; +Cc: outreachy-kernel
On Sun, Oct 11, 2015 at 7:51 PM, Shivani Bhardwaj <shivanib134@gmail.com> wrote:
> Break the lines with over 80 characters into sensible chunks of data.
> Fixes the chackpacth warning: line over 80 characters
>
> Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
With this patch you introduce new checkpatch.pl errors. Please
run ./scripts/checkpatch.pl --strict 0001-your-patch.patch, before
sending patch for review.
I'm looking at this type of error:
CHECK: Alignment should match open parenthesis
#82: FILE: drivers/staging/vt6655/mac.c:606:
+void MACvSetCurrRx1DescAddr(void __iomem *dwIoBase,
+ unsigned long dwCurrDescAddr)
thanks,
Daniel.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Outreachy kernel] [PATCH v2 1/2] Staging: vt6655: mac: Remove character limit warning
2015-10-12 17:06 ` [Outreachy kernel] " Daniel Baluta
@ 2015-10-12 17:31 ` Shivani Bhardwaj
0 siblings, 0 replies; 5+ messages in thread
From: Shivani Bhardwaj @ 2015-10-12 17:31 UTC (permalink / raw)
To: Daniel Baluta; +Cc: outreachy-kernel
On Mon, Oct 12, 2015 at 10:36 PM, Daniel Baluta <daniel.baluta@gmail.com> wrote:
> On Sun, Oct 11, 2015 at 7:51 PM, Shivani Bhardwaj <shivanib134@gmail.com> wrote:
>> Break the lines with over 80 characters into sensible chunks of data.
>> Fixes the chackpacth warning: line over 80 characters
>>
>> Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
>
> With this patch you introduce new checkpatch.pl errors. Please
> run ./scripts/checkpatch.pl --strict 0001-your-patch.patch, before
> sending patch for review.
>
> I'm looking at this type of error:
>
> CHECK: Alignment should match open parenthesis
> #82: FILE: drivers/staging/vt6655/mac.c:606:
> +void MACvSetCurrRx1DescAddr(void __iomem *dwIoBase,
> + unsigned long dwCurrDescAddr)
>
>
>
> thanks,
> Daniel.
I'll take care next time. Thanks, Daniel.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] Staging: vt6655: mac: Remove unnecessary braces
2015-10-11 16:50 [PATCH v2 0/2] Fix checkpatch warnings Shivani Bhardwaj
2015-10-11 16:51 ` [PATCH v2 1/2] Staging: vt6655: mac: Remove character limit warning Shivani Bhardwaj
@ 2015-10-11 16:51 ` Shivani Bhardwaj
1 sibling, 0 replies; 5+ messages in thread
From: Shivani Bhardwaj @ 2015-10-11 16:51 UTC (permalink / raw)
To: outreachy-kernel; +Cc: outreachy-kernel
Remove unnecessary braces for an if statement as it comprises of a
single line.
Fixes checkpatch warning: braces {} are not necessary for single statement blocks
Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
drivers/staging/vt6655/mac.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/vt6655/mac.c b/drivers/staging/vt6655/mac.c
index f6774d3..88dbc6d 100644
--- a/drivers/staging/vt6655/mac.c
+++ b/drivers/staging/vt6655/mac.c
@@ -692,9 +692,8 @@ void MACvSetCurrAC0DescAddrEx(void __iomem *dwIoBase,
if (!(byData & DMACTL_RUN))
break;
}
- if (ww == W_MAX_TIMEOUT) {
+ if (ww == W_MAX_TIMEOUT)
pr_debug(" DBG_PORT80(0x26)\n");
- }
VNSvOutPortD(dwIoBase + MAC_REG_AC0DMAPTR, dwCurrDescAddr);
if (byOrgDMACtl & DMACTL_RUN)
VNSvOutPortB(dwIoBase + MAC_REG_AC0DMACTL, DMACTL_RUN);
--
2.1.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-10-12 17:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-11 16:50 [PATCH v2 0/2] Fix checkpatch warnings Shivani Bhardwaj
2015-10-11 16:51 ` [PATCH v2 1/2] Staging: vt6655: mac: Remove character limit warning Shivani Bhardwaj
2015-10-12 17:06 ` [Outreachy kernel] " Daniel Baluta
2015-10-12 17:31 ` Shivani Bhardwaj
2015-10-11 16:51 ` [PATCH v2 2/2] Staging: vt6655: mac: Remove unnecessary braces Shivani Bhardwaj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.