linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging: sm750fb: Braces {} on all arms
@ 2016-04-29  6:26 Manav Batra
  0 siblings, 0 replies; only message in thread
From: Manav Batra @ 2016-04-29  6:26 UTC (permalink / raw)
  To: gregkh, linux-fbdev, devel, linux-kernel

Signed-off-by: Manav Batra <batmanav10@gmail.com>

Applied braces on all arms of the statement.
---
 drivers/staging/sm750fb/ddk750_chip.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c
index f80ee77..7748862 100644
--- a/drivers/staging/sm750fb/ddk750_chip.c
+++ b/drivers/staging/sm750fb/ddk750_chip.c
@@ -19,15 +19,16 @@ logical_chip_type_t getChipType(void)
 	physicalID = devId750; /* either 0x718 or 0x750 */
 	physicalRev = revId750;
 
-	if (physicalID == 0x718)
+	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;
+	}
 
 	return chip;
 }
-- 
1.9.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-04-29  6:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-29  6:26 [PATCH] staging: sm750fb: Braces {} on all arms Manav Batra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).