staging: comedi: dyna_pci10xx: remove 'valid' from the private data
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 19 Jul 2012 02:00:04 +0000 (19:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jul 2012 23:51:37 +0000 (16:51 -0700)
This variable is set at the end of the attach but never used
in the driver. Remove it.

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

index 82002c4ff132bb3053fa54b95b71cdcd9bc33cc6..24c5cd270cebab90c92deaea1891b241bdc5a998 100644 (file)
@@ -101,7 +101,6 @@ static const struct boardtype boardtypes[] = {
 
 struct dyna_pci10xx_private {
        struct pci_dev *pci_dev;        /*  ptr to PCI device */
-       char valid;                     /*  card is usable */
        struct mutex mutex;
 
        /* device base address registers */
@@ -342,8 +341,6 @@ static int dyna_pci10xx_attach(struct comedi_device *dev,
        s->state = 0;
        s->insn_bits = dyna_pci10xx_do_insn_bits;
 
-       devpriv->valid = 1;
-
        printk(KERN_INFO "comedi: dyna_pci10xx: %s - device setup completed!\n",
                thisboard->name);