Commit 423e0e3f authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6bdae560
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);