Skip to content

Commit

Permalink
staging: comedi: dyna_pci10xx: remove 'valid' from the private data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jul 19, 2012
1 parent 6bdae56 commit 423e0e3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/comedi/drivers/dyna_pci10xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 423e0e3

Please sign in to comment.