summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-07-18 19:00:04 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-07-19 16:51:37 -0700
commit423e0e3f551212df86d4e06287d253c2ae26e8dd (patch)
tree67920ac087dde673e0f4eed0cd061340a3b2108a /drivers
parent6bdae560f46cddc8aeff5bd9c76454168ee8e8ab (diff)
downloadlinux-3.10-423e0e3f551212df86d4e06287d253c2ae26e8dd.tar.gz
linux-3.10-423e0e3f551212df86d4e06287d253c2ae26e8dd.tar.bz2
linux-3.10-423e0e3f551212df86d4e06287d253c2ae26e8dd.zip
staging: comedi: dyna_pci10xx: remove 'valid' from the private data
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/comedi/drivers/dyna_pci10xx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/dyna_pci10xx.c b/drivers/staging/comedi/drivers/dyna_pci10xx.c
index 82002c4ff13..24c5cd270ce 100644
--- a/drivers/staging/comedi/drivers/dyna_pci10xx.c
+++ b/drivers/staging/comedi/drivers/dyna_pci10xx.c
@@ -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);