Commit 7b8f2d1a authored by Jason Wong's avatar Jason Wong Committed by Greg Kroah-Hartman

Staging: comedi: cb_das16_cs: fixed multiple brace coding style issues

Fixed multiple coding style issues
Signed-off-by: default avatarJason Wong <tsanghan@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ec14016e
...@@ -175,16 +175,16 @@ static int das16cs_attach(struct comedi_device *dev, ...@@ -175,16 +175,16 @@ static int das16cs_attach(struct comedi_device *dev,
printk("I/O base=0x%04lx ", dev->iobase); printk("I/O base=0x%04lx ", dev->iobase);
printk("fingerprint:\n"); printk("fingerprint:\n");
for (i = 0; i < 48; i += 2) { for (i = 0; i < 48; i += 2)
printk("%04x ", inw(dev->iobase + i)); printk("%04x ", inw(dev->iobase + i));
}
printk("\n"); printk("\n");
ret = request_irq(link->irq.AssignedIRQ, das16cs_interrupt, ret = request_irq(link->irq.AssignedIRQ, das16cs_interrupt,
IRQF_SHARED, "cb_das16_cs", dev); IRQF_SHARED, "cb_das16_cs", dev);
if (ret < 0) { if (ret < 0)
return ret; return ret;
}
dev->irq = link->irq.AssignedIRQ; dev->irq = link->irq.AssignedIRQ;
printk("irq=%u ", dev->irq); printk("irq=%u ", dev->irq);
...@@ -262,9 +262,9 @@ static int das16cs_detach(struct comedi_device *dev) ...@@ -262,9 +262,9 @@ static int das16cs_detach(struct comedi_device *dev)
{ {
printk("comedi%d: das16cs: remove\n", dev->minor); printk("comedi%d: das16cs: remove\n", dev->minor);
if (dev->irq) { if (dev->irq)
free_irq(dev->irq, dev); free_irq(dev->irq, dev);
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment