Skip to content

Commit

Permalink
Staging: comedi: amplc_pc263.c: more coding style fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Kevyn-Alexandre Paré <kevyn.alexandre.pare@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Kevyn-Alexandre Paré authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent abdedef commit 56f5f24
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions drivers/staging/comedi/drivers/amplc_pc263.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,8 @@ static int pc263_attach(struct comedi_device *dev, struct comedi_devconfig *it)
#endif
{
ret = pc263_request_region(dev->minor, iobase, PC263_IO_SIZE);
if (ret < 0) {
if (ret < 0)
return ret;
}
}
dev->iobase = iobase;

Expand Down Expand Up @@ -352,21 +351,18 @@ static int pc263_detach(struct comedi_device *dev)
PC263_DRIVER_NAME);

#ifdef CONFIG_COMEDI_PCI
if (devpriv)
if (devpriv) {
#endif
{
#ifdef CONFIG_COMEDI_PCI
if (devpriv->pci_dev) {
if (dev->iobase) {
if (dev->iobase)
comedi_pci_disable(devpriv->pci_dev);
}
pci_dev_put(devpriv->pci_dev);
} else
#endif
{
if (dev->iobase) {
if (dev->iobase)
release_region(dev->iobase, PC263_IO_SIZE);
}
}
}
if (dev->board_name) {
Expand Down

0 comments on commit 56f5f24

Please sign in to comment.