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: Eli Billauer <eli.billauer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
736221ef1f
commit
84590b1aa9
@ -158,10 +158,10 @@ irqreturn_t xillybus_isr(int irq, void *data)
|
|||||||
ep->msg_counter,
|
ep->msg_counter,
|
||||||
i/2);
|
i/2);
|
||||||
|
|
||||||
if (++ep->failed_messages > 10)
|
if (++ep->failed_messages > 10) {
|
||||||
dev_err(ep->dev,
|
dev_err(ep->dev,
|
||||||
"Lost sync with interrupt messages. Stopping.\n");
|
"Lost sync with interrupt messages. Stopping.\n");
|
||||||
else {
|
} else {
|
||||||
ep->ephw->hw_sync_sgl_for_device(
|
ep->ephw->hw_sync_sgl_for_device(
|
||||||
ep,
|
ep,
|
||||||
ep->msgbuf_dma_addr,
|
ep->msgbuf_dma_addr,
|
||||||
@ -532,8 +532,9 @@ static int xilly_setupchannels(struct xilly_endpoint *ep,
|
|||||||
|
|
||||||
if (!buffers)
|
if (!buffers)
|
||||||
goto memfail;
|
goto memfail;
|
||||||
} else
|
} else {
|
||||||
bytebufsize = bufsize << 2;
|
bytebufsize = bufsize << 2;
|
||||||
|
}
|
||||||
|
|
||||||
if (!is_writebuf) {
|
if (!is_writebuf) {
|
||||||
channel->num_rd_buffers = bufnum;
|
channel->num_rd_buffers = bufnum;
|
||||||
|
Loading…
Reference in New Issue
Block a user