linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2]  staging:sm750fb:ddk750_chip.c Adds braces to last arm of statement
@ 2017-01-10  2:23 Scott Matheina
  2017-01-10  2:23 ` [PATCH 2/2] staging:sm750fb:ddk750_chip.c removes un-necessary blank lines Scott Matheina
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Matheina @ 2017-01-10  2:23 UTC (permalink / raw)
  To: linux-kernel
  Cc: Sudip Mukherjee, Teddy Wang, Greg Kroah-Hartman, linux-fbdev, devel

Fixes absence of braces on last arm of statement, identified by
checkpatch

Signed-off-by: Scott Matheina <scott@matheina.com>
---
 drivers/staging/sm750fb/ddk750_chip.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c
index f59ce5c..ec33f1f 100644
--- a/drivers/staging/sm750fb/ddk750_chip.c
+++ b/drivers/staging/sm750fb/ddk750_chip.c
@@ -25,8 +25,9 @@ void sm750_set_chip_type(unsigned short devId, u8 revId)
 			chip = SM750LE;
 			pr_info("found sm750le\n");
 		}
-	} else
+	} else {
 		chip = SM_UNKNOWN;
+	}
 }
 
 static unsigned int get_mxclk_freq(void)
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] staging:sm750fb:ddk750_chip.c removes un-necessary blank lines
  2017-01-10  2:23 [PATCH 1/2] staging:sm750fb:ddk750_chip.c Adds braces to last arm of statement Scott Matheina
@ 2017-01-10  2:23 ` Scott Matheina
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Matheina @ 2017-01-10  2:23 UTC (permalink / raw)
  To: linux-kernel
  Cc: Sudip Mukherjee, Teddy Wang, Greg Kroah-Hartman, linux-fbdev, devel

Fixes checkpatch warning - Please don't use multiple blank lines

Signed-off-by: Scott Matheina <scott@matheina.com>
---
 drivers/staging/sm750fb/ddk750_chip.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c
index ec33f1f..9aaf1fd 100644
--- a/drivers/staging/sm750fb/ddk750_chip.c
+++ b/drivers/staging/sm750fb/ddk750_chip.c
@@ -245,7 +245,6 @@ int ddk750_init_hw(struct initchip_param *pInitParam)
 	/* Set up master clock */
 	set_master_clock(MHz(pInitParam->masterClock));
 
-
 	/*
 	 * Reset the memory controller.
 	 * If the memory controller is not reset in SM750,
@@ -408,5 +407,3 @@ unsigned int sm750_format_pll_reg(struct pll_value *pPLL)
 
 	return reg;
 }
-
-
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-10  2:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-10  2:23 [PATCH 1/2] staging:sm750fb:ddk750_chip.c Adds braces to last arm of statement Scott Matheina
2017-01-10  2:23 ` [PATCH 2/2] staging:sm750fb:ddk750_chip.c removes un-necessary blank lines Scott Matheina

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).