staging: comedi: adl_pci9111: cleanup pci9111_di_insn_bits()

Remove the unnecessary comments and remove the unneeded local variable.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
H Hartley Sweeten 2012-09-10 18:52:34 -07:00 committed by Greg Kroah-Hartman
parent 101e490a2a
commit bfa6d3b80f
1 changed files with 3 additions and 11 deletions

View File

@ -1078,20 +1078,12 @@ static int pci9111_ao_insn_read(struct comedi_device *dev,
return i; return i;
} }
/* ------------------------------------------------------------------ */
/* DIGITAL INPUT OUTPUT SECTION */
/* ------------------------------------------------------------------ */
/* Digital inputs */
static int pci9111_di_insn_bits(struct comedi_device *dev, static int pci9111_di_insn_bits(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
struct comedi_insn *insn, unsigned int *data) struct comedi_insn *insn,
unsigned int *data)
{ {
unsigned int bits; data[1] = inw(dev->iobase + PCI9111_DIO_REG);
bits = inw(dev->iobase + PCI9111_DIO_REG);
data[1] = bits;
return insn->n; return insn->n;
} }