Thread (3 messages) 3 messages, 3 authors, 2019-01-18

Re: [PATCH] sb1000: fix a couple of indentation issues

flat view

From: Joe Perches <joe@perches.com>
Date: 2019-01-17 00:21:06
Also in: kernel-janitors, lkml

On Thu, 2019-01-17 at 00:13 +0000, Colin King wrote:
From: Colin Ian King <redacted>

There is an if statement and a return statement that are incorrectly
indented. Fix these.
[]
quoted hunk ↗ jump to hunk
diff --git a/drivers/net/sb1000.c b/drivers/net/sb1000.c
[]
quoted hunk ↗ jump to hunk
@@ -540,12 +540,12 @@ sb1000_activate(const int ioaddr[], const char* name)
 	if ((status = card_send_command(ioaddr, name, Command1, st)))
 		return status;
 	if (st[3] != 0xf1) {
-    	if ((status = sb1000_start_get_set_command(ioaddr, name)))
+		if ((status = sb1000_start_get_set_command(ioaddr, name)))
Probably better to remove the assignment in the if at the same time.

		status = sb1000_start_get_set_command(ioaddr, name);
		if (status)
quoted hunk ↗ jump to hunk
 			return status;
 		return -EIO;
 	}
 	udelay(1000);
-    return sb1000_start_get_set_command(ioaddr, name);
+	return sb1000_start_get_set_command(ioaddr, name);
 }
 
 /* get SB1000 firmware version */
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help