]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: adl_pci9111: cleanup pci9111_di_insn_bits()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 11 Sep 2012 01:52:34 +0000 (18:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Sep 2012 03:02:23 +0000 (20:02 -0700)
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>
drivers/staging/comedi/drivers/adl_pci9111.c

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