Skip to contentSkip to conversation

Staging: sm750fb: Remove brace for single statement

PATCH In review Amitoj Kaur Chawla 2 participants 2 messages Mar 31, 2015 – Apr 1, 2015

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

PATCH 1/1 Staging: sm750fb: Remove brace for single statement

Removed braces in the single if statement. Problem found using checkpatch.pl
WARNING: braces {} are not necessary for single statement blocks

---
 drivers/staging/sm750fb/ddk750_chip.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +1 -2
index 13b25ab..93517d9 100644
@@ -25,9 +25,8 @@ logical_chip_type_t getChipType(void)
 	} else if (physicalID == 0x750) {
 		chip = SM750;
 		/* SM750 and SM750LE are different in their revision ID only. */
-		if (physicalRev == SM750LE_REVISION_ID){
+		if (physicalRev == SM750LE_REVISION_ID)
 			chip = SM750LE;
-		}
 	} else {
 		chip = SM_UNKNOWN;
 	}
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 7 lines · Amitoj Kaur Chawla

Removed braces in the single if statement. Problem found using checkpatch.pl
WARNING: braces {} are not necessary for single statement blocks

---
 drivers/staging/sm750fb/ddk750_chip.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

You sent me 3 patches for this driver, but no hint as to what order to apply them in :(

Please fix that up, and send a series of three patches, properly numbered, so I know what to do.

thanks,

greg k-h