[OPW,kernel] staging/cxt1e1:Fixes suspect code indent warning
diff mbox

Message ID 20131003193518.GA16512@dshgna
State Accepted
Headers show

Commit Message

Dulshani Gunawardhana Oct. 3, 2013, 7:35 p.m. UTC
Fixes checkpatch.pl warning "suspect code indent for conditional
statements" for comet.c.

Signed-off-by: Dulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
---
 drivers/staging/cxt1e1/comet.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

Comments

Greg KH Oct. 4, 2013, 3:16 a.m. UTC | #1
On Fri, Oct 04, 2013 at 01:05:23AM +0530, Dulshani Gunawardhana wrote:
> Fixes checkpatch.pl warning "suspect code indent for conditional
> statements" for comet.c.
> 
> Signed-off-by: Dulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
> ---
>  drivers/staging/cxt1e1/comet.c | 7 +++----
>  1 file changed, 3 insertions(+), 4 deletions(-)

Looks good, nice job, I'll queue this up tomorrow for inclusion.

greg k-h
Greg KH Oct. 7, 2013, 5:06 a.m. UTC | #2
On Fri, Oct 04, 2013 at 01:05:23AM +0530, Dulshani Gunawardhana wrote:
> Fixes checkpatch.pl warning "suspect code indent for conditional
> statements" for comet.c.
> 
> Signed-off-by: Dulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>

Applied, thanks.

greg k-h

Patch
diff mbox

diff --git a/drivers/staging/cxt1e1/comet.c b/drivers/staging/cxt1e1/comet.c
index d71aea5..8cef283 100644
--- a/drivers/staging/cxt1e1/comet.c
+++ b/drivers/staging/cxt1e1/comet.c
@@ -147,8 +147,7 @@  void init_comet(void *ci, comet_t *comet, u_int32_t port_mode, int clockmaster,
 	pci_write_32((u_int32_t *) &comet->t1_rboc_ena, 0x00);
 	if (isT1mode)
 	{
-
-	/* IBCD cfg: aka Inband Code Detection ** loopback code length set to */
+		/* IBCD cfg: aka Inband Code Detection ** loopback code length set to */
 		/* 6 bit down, 5 bit up (assert) */
 		pci_write_32((u_int32_t *) &comet->ibcd_cfg, 0x04);
 		/* line loopback activate pattern */
@@ -353,7 +352,7 @@  void init_comet(void *ci, comet_t *comet, u_int32_t port_mode, int clockmaster,
 	/* RLPS Configuration Status */
 	pci_write_32((u_int32_t *) &comet->rlps_cfgsts, 0x11);
 	if (isT1mode)
-		 /* ? */
+		/* ? */
 		pci_write_32((u_int32_t *) &comet->rlps_alos_thresh, 0x55);
 	else
 		/* ? */
@@ -452,7 +451,7 @@  WrtRcvEqualizerTbl(ci_t *ci, comet_t *comet, u_int32_t *table)
 	volatile u_int32_t value;
 
 	for (ramaddr = 0; ramaddr < 256; ramaddr++) {
-	/*** the following lines are per Errata 7, 2.5 ***/
+		/*** the following lines are per Errata 7, 2.5 ***/
 		{
 		/* Set up for a read operation */
 		pci_write_32((u_int32_t *) &comet->rlps_eq_rwsel, 0x80);