Skip to contentSkip to conversation

staging: sm750fb: Remove unnecessary braces.

PATCH In review Varsha Rao 2 participants 2 messages Feb 26, 2017

Subsystems (2)
lore
Share & tools
lore

Varsha Rao

author
#0 lore raw

PATCH 1/1 staging: sm750fb: Remove unnecessary braces.

Removed braces which are not required and the trailing spaces caused by removal of braces.

---
 drivers/staging/sm750fb/sm750_accel.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/staging/sm750fb/sm750_accel.c +0 -4
index 57ae743..9548863 100644
@@ -259,8 +259,6 @@ unsigned int rop2)   /* ROP value */
 	if (accel->de_wait() != 0)
 		return -1;
 
-	{
-
 	write_dpr(accel, DE_SOURCE,
 		  ((sx << DE_SOURCE_X_K1_SHIFT) & DE_SOURCE_X_K1_MASK) |
 		  (sy & DE_SOURCE_Y_K2_MASK)); /* dpr0 */
@@ -276,8 +274,6 @@ unsigned int rop2)   /* ROP value */
 		DE_CONTROL_COMMAND_BITBLT | DE_CONTROL_STATUS;
 	write_dpr(accel, DE_CONTROL, de_ctrl); /* dpr0c */
 
-	}
-
 	return 0;
 }
 
Signature · 1 line
2.9.3
#1 lore raw
Quoted 2 lines · Varsha Rao

Removed braces which are not required and the trailing spaces caused by removal of braces.

This should be a v2 as you sent another on the same code with partly the same changes.

julia

Quoted 38 lines
---
 drivers/staging/sm750fb/sm750_accel.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/staging/sm750fb/sm750_accel.c +0 -5
index 57ae743..9548863 100644
@@ -259,8 +259,6 @@ unsigned int rop2)   /* ROP value */
 	if (accel->de_wait() != 0)
 		return -1;
 
-	{
-
 	write_dpr(accel, DE_SOURCE,
 		  ((sx << DE_SOURCE_X_K1_SHIFT) & DE_SOURCE_X_K1_MASK) |
 		  (sy & DE_SOURCE_Y_K2_MASK)); /* dpr0 */
@@ -276,8 +274,6 @@ unsigned int rop2)   /* ROP value */
 		DE_CONTROL_COMMAND_BITBLT | DE_CONTROL_STATUS;
 	write_dpr(accel, DE_CONTROL, de_ctrl); /* dpr0c */
 
-	}
-
 	return 0;
 }
 
--

2.9.3

--
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/58b28860.5c37630a.52b6.2c1f%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.