Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6394d98d authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 22c2ad61
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -535,12 +535,15 @@ sb1000_activate(const int ioaddr[], const char* name)
	int status;

	ssleep(1);
	if ((status = card_send_command(ioaddr, name, Command0, st)))
	status = card_send_command(ioaddr, name, Command0, st);
	if (status)
		return status;
	if ((status = card_send_command(ioaddr, name, Command1, st)))
	status = card_send_command(ioaddr, name, Command1, st);
	if (status)
		return status;
	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 -EIO;
	}