lkml.org 
[lkml]   [2011]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 10/10] Re:[PATCH]Staging: comedi: fix brace coding style issue in rtd520.c
Date
From: Ravishankar <ravi.shankar@greenturtles.in>

Signed-off-by: Ravishankar <ravishankarkm32@gmail.com>

---

There is no braces in earlier now it's fixed.
---
drivers/staging/comedi/drivers/rtd520.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/comedi/drivers/rtd520.c b/drivers/staging/comedi/drivers/rtd520.c
index 31a96c9..c41512a 100644
--- a/drivers/staging/comedi/drivers/rtd520.c
+++ b/drivers/staging/comedi/drivers/rtd520.c
@@ -1410,11 +1410,12 @@ static int ai_read_dregs(struct comedi_device *dev, struct comedi_subdevice *s)
}

d = d >> 3; /* low 3 bits are marker lines */
- if (CHAN_ARRAY_TEST(devpriv->chanBipolar, s->async->cur_chan))
+ if (CHAN_ARRAY_TEST(devpriv->chanBipolar, s->async->cur_chan)) {
/* convert to comedi unsigned data */
sample = d + 2048;
- else
+ } else {
sample = d;
+ }

if (!comedi_buf_put(s->async, sample))
return -1;
--
1.6.5.2


\
 
 \ /
  Last update: 2011-07-09 10:01    [W:0.019 / U:11.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site