staging: comedi: adl_pci9111: remove unnecessary 'is_valid'
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 11 Sep 2012 02:04:57 +0000 (19:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Sep 2012 03:08:02 +0000 (20:08 -0700)
commit893be483434a364f3a01127bdbfbdab8c5331501
tree6396de53dbac7364ec19563ed0df56cea45bdfb0
parenteba16272d1e5b17788bacfb64194b79e3a6b25a3
staging: comedi: adl_pci9111: remove unnecessary 'is_valid'

The 'is_valid' variable in the private data is only used in the
detach of the board to determine if the pci9111_reset() function
can be called. That function only requires a valid dev->iobase
to work. Use that for the check instead and remove the unneeded
variable from the private data.

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