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

Commit 84590b1a authored by Eli Billauer's avatar Eli Billauer Committed by Greg Kroah-Hartman
Browse files

staging: xillybus: Fix if-else coding style errors



According to Documentation/CodingStyle, when one branch of an if-else
statement has multiple statements, both branches should be enclosed in curly
brackets.

Signed-off-by: default avatarEli Billauer <eli.billauer@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 736221ef
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -158,10 +158,10 @@ irqreturn_t xillybus_isr(int irq, void *data)
				ep->msg_counter,
				i/2);

			if (++ep->failed_messages > 10)
			if (++ep->failed_messages > 10) {
				dev_err(ep->dev,
					"Lost sync with interrupt messages. Stopping.\n");
			else {
			} else {
				ep->ephw->hw_sync_sgl_for_device(
					ep,
					ep->msgbuf_dma_addr,
@@ -532,8 +532,9 @@ static int xilly_setupchannels(struct xilly_endpoint *ep,

			if (!buffers)
				goto memfail;
		} else
		} else {
			bytebufsize = bufsize << 2;
		}

		if (!is_writebuf) {
			channel->num_rd_buffers = bufnum;