Skip to content

Commit 6394d98

Browse files
Colin Ian Kingdavem330
authored andcommitted
sb1000: fix a couple of indentation issues and remove assignment in if statements
There is an if statement and a return statement that are incorrectly indented. Fix these. Also replace the assignment-in-if statements to assignment followed by an if to keep to the coding style. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 22c2ad6 commit 6394d98

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

drivers/net/sb1000.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,17 +535,20 @@ sb1000_activate(const int ioaddr[], const char* name)
535535
int status;
536536

537537
ssleep(1);
538-
if ((status = card_send_command(ioaddr, name, Command0, st)))
538+
status = card_send_command(ioaddr, name, Command0, st);
539+
if (status)
539540
return status;
540-
if ((status = card_send_command(ioaddr, name, Command1, st)))
541+
status = card_send_command(ioaddr, name, Command1, st);
542+
if (status)
541543
return status;
542544
if (st[3] != 0xf1) {
543-
if ((status = sb1000_start_get_set_command(ioaddr, name)))
545+
status = sb1000_start_get_set_command(ioaddr, name);
546+
if (status)
544547
return status;
545548
return -EIO;
546549
}
547550
udelay(1000);
548-
return sb1000_start_get_set_command(ioaddr, name);
551+
return sb1000_start_get_set_command(ioaddr, name);
549552
}
550553

551554
/* get SB1000 firmware version */

0 commit comments

Comments
 (0)