staging: comedi: addi_apci_1564: remove use of devpriv->b_OutputMemoryStatus
authorChase Southwood <chase.southwood@gmail.com>
Sat, 21 Jun 2014 22:24:39 +0000 (17:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2014 00:09:37 +0000 (20:09 -0400)
This member of the private data struct is only set at one location in the
entire driver, and then never even used for anything.  Let's just remove
its use.

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

index 7fa4346..4e6d064 100644 (file)
@@ -149,11 +149,6 @@ static int apci1564_do_config(struct comedi_device *dev,
                return -EINVAL;
        }
 
-       if (data[0])
-               devpriv->b_OutputMemoryStatus = 1;
-       else
-               devpriv->b_OutputMemoryStatus = 0;
-
        if (data[1] == 1)
                ul_Command = ul_Command | 0x1;
        else