staging: comedi: addi_apci_3120: remove devpriv->mode '0xef' magic value
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 4 Nov 2014 17:54:17 +0000 (10:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 17:34:00 +0000 (09:34 -0800)
This mask value is the same as APCI3120_DISABLE_TIMER_COUNTER. Use that
instead and remove the "magic" value.

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

index c58d4a6a02410c36494e5e3c099bcf1b8b474390..f351b50083f345e9094be50b0ef7ffa6ac34c3e6 100644 (file)
@@ -1095,7 +1095,8 @@ static int apci3120_config_insn_timer(struct comedi_device *dev,
        apci3120_timer_enable(dev, 2, false);
 
        /*  Disable TIMER Interrupt */
-       devpriv->mode &= APCI3120_DISABLE_TIMER_INT & 0xef;
+       devpriv->mode &= APCI3120_DISABLE_TIMER_INT &
+                        APCI3120_DISABLE_TIMER_COUNTER;
 
        /*  Disable Eoc and Eos Interrupts */
        devpriv->mode &= APCI3120_DISABLE_EOC_INT & APCI3120_DISABLE_EOS_INT;