]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
staging: comedi: addi_apci_1564: remove unused static variables
authorChase Southwood <chase.southwood@gmail.com>
Sat, 21 Jun 2014 22:25:17 +0000 (17:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:09:37 +0000 (20:09 -0400)
The global variables ui_InterruptStatus_1564 and ui_InterruptData are both
set but never used.  Just remove them from the driver.

Signed-off-by: Chase Southwood <chase.southwood@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Cc: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi-data/hwdrv_apci1564.c

index 4e6d0649489c4728656c5432fceac3f2b4a7caaf..843815ba5120f64c73aeb544f0f0165954faa49d 100644 (file)
@@ -90,8 +90,7 @@
 #define APCI1564_TCW_WARN_TIMEBASE_REG(x)              (0x1c + ((x) * 0x20))
 
 /* Global variables */
-static unsigned int ui_InterruptStatus_1564;
-static unsigned int ui_InterruptData, ui_Type;
+static unsigned int ui_Type;
 
 /*
  * Configures the digital input Subdevice
@@ -160,7 +159,6 @@ static int apci1564_do_config(struct comedi_device *dev,
                ul_Command = ul_Command & 0xFFFFFFFD;
 
        outl(ul_Command, devpriv->i_IobaseAmcc + APCI1564_DO_INT_CTRL_REG);
-       ui_InterruptData = inl(devpriv->i_IobaseAmcc + APCI1564_DO_INT_CTRL_REG);
        devpriv->tsk_Current = current;
        return insn->n;
 }
@@ -428,9 +426,6 @@ static void apci1564_interrupt(int irq, void *d)
        if (ui_DI == 1) {
                ui_DI = inl(devpriv->i_IobaseAmcc + APCI1564_DI_IRQ_REG);
                outl(0x0, devpriv->i_IobaseAmcc + APCI1564_DI_IRQ_REG);
-               ui_InterruptStatus_1564 =
-                       inl(devpriv->i_IobaseAmcc + APCI1564_DI_INT_STATUS_REG);
-               ui_InterruptStatus_1564 = ui_InterruptStatus_1564 & 0X000FFFF0;
                /* send signal to the sample */
                send_sig(SIGIO, devpriv->tsk_Current, 0);
                /* enable the interrupt */