staging: comedi: pcl812: remove 'valid' from private data
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 17 Feb 2014 21:27:19 +0000 (14:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 19:55:31 +0000 (11:55 -0800)
This member of the private data is set but never used. Remove it.

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/pcl812.c

index 522a58772ed8affa104979bae7d13534b133c790..ec6d37d4937ecbad57ee517d2b9428244d50ad9c 100644 (file)
@@ -507,8 +507,6 @@ static const struct pcl812_board boardtypes[] = {
 };
 
 struct pcl812_private {
-
-       unsigned char valid;    /*  =1 device is OK */
        unsigned char dma;      /*  >0 use dma ( usedDMA channel) */
        unsigned char use_diff; /*  =1 diff inputs */
        unsigned char use_MPC;  /*  1=board uses MPC508A multiplexor */
@@ -1497,8 +1495,6 @@ static int pcl812_attach(struct comedi_device *dev, struct comedi_devconfig *it)
                break;
        }
 
-       devpriv->valid = 1;
-
        pcl812_reset(dev);
 
        return 0;