Skip to contentSkip to conversation

Staging: vt6655: { retrieved upper row

PATCH Superseded Hatice ERTÜRK 3 participants 5 messages Feb 21, 2015 – Feb 26, 2015 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: vt6655: { retrieved upper row

That open brace { should be on the previous line.
This Error found with checkpatch.pl

---
 drivers/staging/vt6655/card.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/vt6655/card.c +2 -2
index a079640..e77a5f6 100644
@@ -68,8 +68,8 @@
 
 /*---------------------  Static Variables  --------------------------*/
 
-static const unsigned short cwRXBCNTSFOff[MAX_RATE] =
-{17, 17, 17, 17, 34, 23, 17, 11, 8, 5, 4, 3};
+static const unsigned short cwRXBCNTSFOff[MAX_RATE] = {
+17, 17, 17, 17, 34, 23, 17, 11, 8, 5, 4, 3};
 
 /*---------------------  Static Functions  --------------------------*/
 
Signature · 1 line
1.9.1
#1 lore raw
Quoted 2 lines · Hatice ERTÜRK

That open brace { should be on the previous line.
This Error found with checkpatch.pl

I think the { is ok where it is in this code, but I'm not an expert on this issue...

{ retrived upper row is not easy to understand. Perhaps Move { up one line.

julia

Quoted 30 lines
---
 drivers/staging/vt6655/card.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/vt6655/card.c +2 -2
index a079640..e77a5f6 100644
@@ -68,8 +68,8 @@
 
 /*---------------------  Static Variables  --------------------------*/
 
-static const unsigned short cwRXBCNTSFOff[MAX_RATE] =
-{17, 17, 17, 17, 34, 23, 17, 11, 8, 5, 4, 3};
+static const unsigned short cwRXBCNTSFOff[MAX_RATE] = {
+17, 17, 17, 17, 34, 23, 17, 11, 8, 5, 4, 3};
 
 /*---------------------  Static Functions  --------------------------*/
 
Signature · 8 lines
1.9.1

-- 
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1424550280-22040-1-git-send-email-haticeerturk27%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
#2 lore raw

I think the { is ok but the error there was given. I didn't think of other ways.So I've done that.

#3 lore raw
Quoted 2 lines · Hatice ERTÜRK

I think the { is ok but the error  there was given. I didn't think of other ways.So I've done that.

Check patch is not always correct. It uses some regular expressions to figure out what the different kinds of code might be, but it may be that it has misinterpreted something in this case.

julia

Quoted 12 lines

--
You received this message because you are subscribed to the Google Groups
"outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/72ff878e-070b-4eb8-9849- f823194bb84c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

maintainer
#4 lore raw
In reply to Hatice ERTÜRK
Quoted 13 lines · Hatice ERT�RK

That open brace { should be on the previous line.
This Error found with checkpatch.pl

---
 drivers/staging/vt6655/card.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/vt6655/card.c +0 -0
index a079640..e77a5f6 100644

drivers/staging/vt6655/card.c line 75

Quoted 10 lines
drivers/staging/vt6655/card.c +2 -2
@@ -68,8 +68,8 @@
 
 /*---------------------  Static Variables  --------------------------*/
 
-static const unsigned short cwRXBCNTSFOff[MAX_RATE] =
-{17, 17, 17, 17, 34, 23, 17, 11, 8, 5, 4, 3};
+static const unsigned short cwRXBCNTSFOff[MAX_RATE] = {
+17, 17, 17, 17, 34, 23, 17, 11, 8, 5, 4, 3};
 
 /*---------------------  Static Functions  --------------------------*/
 

This too doesn't apply :(