Skip to contentSkip to conversation

Staging: comedi: poc: fix coding style issues

PATCH New Chihau Chau 1 participant 1 message Feb 5, 2010 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: comedi: poc: fix coding style issues

From: Chihau Chau <[email protected]>

This fixes a line over 80 characters and a brace warnings.

---
 drivers/staging/comedi/drivers/poc.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
drivers/staging/comedi/drivers/poc.c +4 -5
index d23e588..207d5ee 100644
@@ -136,8 +136,8 @@ static int poc_attach(struct comedi_device *dev, struct comedi_devconfig *it)
 	/* check if io addresses are available */
 	if (!request_region(iobase, iosize, "dac02")) {
 		printk
-		    ("I/O port conflict: failed to allocate ports 0x%lx to 0x%lx\n",
-		     iobase, iobase + iosize - 1);
+		    ("I/O port conflict: failed to allocate ports 0x%lx to "
+					"0x%lx\n", iobase, iobase + iosize - 1);
 		return -EIO;
 	}
 	dev->iobase = iobase;
@@ -156,10 +156,9 @@ static int poc_attach(struct comedi_device *dev, struct comedi_devconfig *it)
 	s->insn_write = this_board->winsn;
 	s->insn_read = this_board->rinsn;
 	s->insn_bits = this_board->insnbits;
-	if (s->type == COMEDI_SUBD_AO || s->type == COMEDI_SUBD_DO) {
+	if (s->type == COMEDI_SUBD_AO || s->type == COMEDI_SUBD_DO)
 		s->subdev_flags = SDF_WRITABLE;
-	}
-
+
 	return 0;
 }
 
Signature · 1 line
1.5.6.3