mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
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>
This commit is contained in:
parent
22c2ad616b
commit
6394d98df6
@ -535,17 +535,20 @@ sb1000_activate(const int ioaddr[], const char* name)
|
|||||||
int status;
|
int status;
|
||||||
|
|
||||||
ssleep(1);
|
ssleep(1);
|
||||||
if ((status = card_send_command(ioaddr, name, Command0, st)))
|
status = card_send_command(ioaddr, name, Command0, st);
|
||||||
|
if (status)
|
||||||
return status;
|
return status;
|
||||||
if ((status = card_send_command(ioaddr, name, Command1, st)))
|
status = card_send_command(ioaddr, name, Command1, st);
|
||||||
|
if (status)
|
||||||
return status;
|
return status;
|
||||||
if (st[3] != 0xf1) {
|
if (st[3] != 0xf1) {
|
||||||
if ((status = sb1000_start_get_set_command(ioaddr, name)))
|
status = sb1000_start_get_set_command(ioaddr, name);
|
||||||
|
if (status)
|
||||||
return status;
|
return status;
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
udelay(1000);
|
udelay(1000);
|
||||||
return sb1000_start_get_set_command(ioaddr, name);
|
return sb1000_start_get_set_command(ioaddr, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get SB1000 firmware version */
|
/* get SB1000 firmware version */
|
||||||
|
Loading…
Reference in New Issue
Block a user