All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] staging: sm750fb: Add braces around if condition
@ 2017-03-07 14:12 Sreya Mittal
  0 siblings, 0 replies; only message in thread
From: Sreya Mittal @ 2017-03-07 14:12 UTC (permalink / raw)
  To: outreachy-kernel
  Cc: Sreya Mittal, Sudip Mukherjee, Teddy Wang, Greg Kroah-Hartman

Fix the checkpatch issue:
braces {} should be used on all arms
of if-else statement.

Signed-off-by: Sreya Mittal <sreyamittal5@gmail.com>
---
Changes in v2:
*Add tag to the commit message

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

diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c
index 10cf729..7948ca9 100644
--- a/drivers/staging/sm750fb/ddk750_chip.c
+++ b/drivers/staging/sm750fb/ddk750_chip.c
@@ -16,9 +16,9 @@ logical_chip_type_t sm750_get_chip_type(void)
 
 void sm750_set_chip_type(unsigned short devId, u8 revId)
 {
-	if (devId == 0x718)
+	if (devId == 0x718) {
 		chip = SM718;
-	else if (devId == 0x750) {
+	} else if (devId == 0x750) {
 		chip = SM750;
 		/* SM750 and SM750LE are different in their revision ID only. */
 		if (revId == SM750LE_REVISION_ID) {
-- 
2.9.3



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

only message in thread, other threads:[~2017-03-07 14:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-07 14:12 [PATCH v2] staging: sm750fb: Add braces around if condition Sreya Mittal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.