Skip to contentSkip to conversation

staging: sm750fb: cleanup: fix brace placement

PATCH Superseded Charles Rose 2 participants 3 messages Jan 19, 2016 – Jan 24, 2016

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

PATCH 1/1 staging: sm750fb: cleanup: fix brace placement

Fix brace placement warnings caught by checkpatch.pl.

---
 drivers/staging/sm750fb/sm750_cursor.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/sm750fb/sm750_cursor.c +1 -2
index 3b7ce92..cab891c 100644
@@ -143,8 +143,7 @@ void hw_cursor_setData(struct lynx_cursor *cursor,
 		iowrite16(data, pbuffer);
 
 		/* assume pitch is 1,2,4,8,...*/
-		if ((i+1) % pitch = 0)
-		{
+		if ((i+1) % pitch = 0) {
 			/* need a return */
 			pstart += offset;
 			pbuffer = pstart;
Signature · 1 line
2.5.0
#1 lore raw
Quoted 13 lines · Charles Rose

Fix brace placement warnings caught by checkpatch.pl.

---
  drivers/staging/sm750fb/sm750_cursor.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/sm750fb/sm750_cursor.c +0 -0
index 3b7ce92..cab891c 100644

drivers/staging/sm750fb/sm750_cursor.c void hw_cursor_setData(struct lynx_cursor *cursor, · line 149

Quoted 9 lines
drivers/staging/sm750fb/sm750_cursor.c +1 -2
@@ -143,8 +143,7 @@ void hw_cursor_setData(struct lynx_cursor *cursor,
  		iowrite16(data, pbuffer);
 
  		/* assume pitch is 1,2,4,8,...*/
-		if ((i+1) % pitch = 0)
-		{
+		if ((i+1) % pitch = 0) {
  			/* need a return */
  			pstart += offset;
  			pbuffer = pstart;

Missed copying Greg KH on this.

Thanks,
Charles

maintainer
#2 lore raw
In reply to Charles Rose
Quoted 15 lines · Charles Rose
Quoted 14 lines · Charles Rose

Fix brace placement warnings caught by checkpatch.pl.

---
 drivers/staging/sm750fb/sm750_cursor.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/sm750fb/sm750_cursor.c +0 -0
index 3b7ce92..cab891c 100644
@@ -143,8 +143,7 @@ void hw_cursor_setData(struct lynx_cursor *cursor,
 		iowrite16(data, pbuffer);
 
Quoted 10 lines

drivers/staging/sm750fb/sm750_cursor.c void hw_cursor_setData(struct lynx_cursor *cursor, · line 149

Quoted 8 lines
drivers/staging/sm750fb/sm750_cursor.c +1 -2
 		/* assume pitch is 1,2,4,8,...*/
-		if ((i+1) % pitch = 0)
-		{
+		if ((i+1) % pitch = 0) {
 			/* need a return */
 			pstart += offset;
 			pbuffer = pstart;

Missed copying Greg KH on this.

I can't do anything with a forwarded patch like this :(