Skip to contentSkip to conversation

Staging: sm750fb: Correct brace '{' position

PATCH In review Amitoj Kaur Chawla 2 participants 2 messages Mar 22, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/5 Staging: sm750fb: Correct brace '{' position

Fixes checkpatch.pl error by placing the brace '{' in the correct position after if statement.
ERROR: that open brace { should be on the previous line

---
 drivers/staging/sm750fb/ddk750_chip.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +1 -2
index a1672c8..03d96c0 100644
@@ -191,8 +191,7 @@ void setMasterClock(unsigned int frequency)
 	if (getChipType() == SM750LE)
 		return;
 #endif
-	if (frequency != 0)
-    {
+	if (frequency != 0) {
         /* Set the frequency to the maximum frequency that the SM750 engine can
            run, which is about 190 MHz. */
         if (frequency > MHz(190))
Signature · 1 line
1.9.1
#1 lore raw
Quoted 2 lines · Amitoj Kaur Chawla

Fixes checkpatch.pl error by placing the brace '{' in the correct position after if statement.

"correct position" is not very informative. This could be: Move if brance brace to the if header line. Problem found using checkpatch.

julia

Quoted 31 lines

ERROR: that open brace { should be on the previous line

---
 drivers/staging/sm750fb/ddk750_chip.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +1 -2
index a1672c8..03d96c0 100644
@@ -191,8 +191,7 @@ void setMasterClock(unsigned int frequency)
 	if (getChipType() == SM750LE)
 		return;
 #endif
-	if (frequency != 0)
-    {
+	if (frequency != 0) {
         /* Set the frequency to the maximum frequency that the SM750 engine can
            run, which is about 190 MHz. */
         if (frequency > MHz(190))
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/20150322043407.GA30227%40amitoj-Inspiron-3542.
For more options, visit https://groups.google.com/d/optout.