[PATCH 2/3] Staging: comedi: fix brace coding style issues in ni_labpc.c

MauriceDawsonmauricedawson2699 at googlemail.com MauriceDawsonmauricedawson2699 at googlemail.com
Fri Feb 19 10:53:14 UTC 2010


From: Maurice <maurice at ubuntu.ubuntu-domain>

This is a patch to the ni_labpc.c file that fixes up a brace warning found by the checkpatch.pl tool

Signed-off-by: Maurice Dawson <mauricedawson2699 at googlemail.com>
---
 drivers/staging/comedi/drivers/ni_labpc.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/comedi/drivers/ni_labpc.c b/drivers/staging/comedi/drivers/ni_labpc.c
index a01e35d..a37764b 100644
--- a/drivers/staging/comedi/drivers/ni_labpc.c
+++ b/drivers/staging/comedi/drivers/ni_labpc.c
@@ -584,7 +584,7 @@ int labpc_common_attach(struct comedi_device *dev, unsigned long iobase,
 	s = dev->subdevices + 1;
 	if (thisboard->has_ao) {
 /* Could provide command support, except it only has a one sample
- * hardware buffer for analog output and no underrun flag. */
+* hardware buffer for analog output and no underrun flag. */
 		s->type = COMEDI_SUBD_AO;
 		s->subdev_flags = SDF_READABLE | SDF_WRITABLE | SDF_GROUND;
 		s->n_chan = NUM_AO_CHAN;
@@ -638,9 +638,8 @@ int labpc_common_attach(struct comedi_device *dev, unsigned long iobase,
 		s->insn_read = labpc_eeprom_read_insn;
 		s->insn_write = labpc_eeprom_write_insn;
 
-		for (i = 0; i < EEPROM_SIZE; i++) {
+		for (i = 0; i < EEPROM_SIZE; i++)
 			devpriv->eeprom_data[i] = labpc_eeprom_read(dev, i);
-		}
 #ifdef LABPC_DEBUG
 		printk(" eeprom:");
 		for (i = 0; i < EEPROM_SIZE; i++) {
-- 
1.6.3.3




More information about the devel mailing list