]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: comedi: adv_pci1710: remove unnecessary 'valid'
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 11 Sep 2012 22:08:37 +0000 (15:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Sep 2012 16:29:22 +0000 (09:29 -0700)
commit398e6f1230160e614ef0f878725cdd5f51fda8cd
tree54cb016f6d515e9e4bdd6c5ba6a7c0f75da61e14
parentf62608e3d01ecfc66e0d380dbd0a3927a1ca4b4f
staging: comedi: adv_pci1710: remove unnecessary 'valid'

The 'valid' variable in the private data is only used in the
detach of the board to determine if the pci1710_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/adv_pci1710.c