aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/xillybus
diff options
context:
space:
mode:
authorEli Billauer <eli.billauer@gmail.com>2014-07-17 17:53:19 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-17 17:18:44 -0700
commit84590b1aa93824f1de9dc28f8e294be5d29329ba (patch)
tree0be9fd2ac2ae3bbc654dc599a039893f13e69679 /drivers/staging/xillybus
parentstaging: comedi: ni_labpc.h: checkpatch.pl cleanup (unnecessary space) (diff)
downloadlinux-dev-84590b1aa93824f1de9dc28f8e294be5d29329ba.tar.xz
linux-dev-84590b1aa93824f1de9dc28f8e294be5d29329ba.zip
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>
Diffstat (limited to 'drivers/staging/xillybus')
-rw-r--r--drivers/staging/xillybus/xillybus_core.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c
index 2d59734744e5..0214009f7513 100644
--- a/drivers/staging/xillybus/xillybus_core.c
+++ b/drivers/staging/xillybus/xillybus_core.c
@@ -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;