Skip to contentSkip to conversation

Staging: sm750fb: Fix else statement position

PATCH In review Amitoj Kaur Chawla 1 participant 1 message Mar 29, 2015

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

PATCH 3/4 Staging: sm750fb: Fix else statement position

Fixed position of else statement after brace '}' by placing it in the same line. Problem found using checkpatch.pl
ERROR: else should follow close brace '}'

---
 drivers/staging/sm750fb/ddk750_chip.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +2 -4
index b306d32..5f2f424 100644
@@ -22,15 +22,13 @@ logical_chip_type_t getChipType(void)
 
 	if (physicalID == 0x718) {
 		chip = SM718;
-	}
-	else if (physicalID == 0x750) {
+	} else if (physicalID == 0x750) {
 		chip = SM750;
 		/* SM750 and SM750LE are different in their revision ID only. */
 		if (physicalRev == SM750LE_REVISION_ID){
 			chip = SM750LE;
 		}
-	}
-	else {
+	} else {
 		chip = SM_UNKNOWN;
 	}
 
Signature · 1 line
1.9.1