staging: comedi dt2814: Removed unused variables
authorFatih Yildirim <yildirim.fatih@gmail.com>
Sun, 21 Feb 2021 20:28:55 +0000 (23:28 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:25:28 +0000 (09:25 +0100)
Removed unused variables.

Acked-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Fatih Yildirim <yildirim.fatih@gmail.com>
Link: https://lore.kernel.org/r/20210221202855.12442-1-yildirim.fatih@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/dt2814.c

index bcf4d5444fafa74a0b832f47160d5ecd7f118062..bd329d7b489320161f02fb38f3d42049aa06f0b0 100644 (file)
@@ -186,21 +186,17 @@ static int dt2814_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
 
 static irqreturn_t dt2814_interrupt(int irq, void *d)
 {
-       int lo, hi;
        struct comedi_device *dev = d;
        struct dt2814_private *devpriv = dev->private;
        struct comedi_subdevice *s = dev->read_subdev;
-       int data;
 
        if (!dev->attached) {
                dev_err(dev->class_dev, "spurious interrupt\n");
                return IRQ_HANDLED;
        }
 
-       hi = inb(dev->iobase + DT2814_DATA);
-       lo = inb(dev->iobase + DT2814_DATA);
-
-       data = (hi << 4) | (lo >> 4);
+       inb(dev->iobase + DT2814_DATA);
+       inb(dev->iobase + DT2814_DATA);
 
        if (!(--devpriv->ntrig)) {
                int i;
@@ -229,7 +225,6 @@ static int dt2814_attach(struct comedi_device *dev, struct comedi_devconfig *it)
        struct dt2814_private *devpriv;
        struct comedi_subdevice *s;
        int ret;
-       int i;
 
        ret = comedi_request_region(dev, it->options[0], 0x2);
        if (ret)
@@ -241,8 +236,8 @@ static int dt2814_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                dev_err(dev->class_dev, "reset error (fatal)\n");
                return -EIO;
        }
-       i = inb(dev->iobase + DT2814_DATA);
-       i = inb(dev->iobase + DT2814_DATA);
+       inb(dev->iobase + DT2814_DATA);
+       inb(dev->iobase + DT2814_DATA);
 
        if (it->options[1]) {
                ret = request_irq(it->options[1], dt2814_interrupt, 0,