staging: comedi: amplc_dio200_common: remove some tests from amplc_dio200_common_detach()
authorIan Abbott <abbotti@mev.co.uk>
Fri, 25 Jul 2014 17:07:08 +0000 (18:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jul 2014 23:47:44 +0000 (16:47 -0700)
commitffe29dc6668b9bf0e102fda8f6f52b239c5b83f4
tree495f7838ba1e6533c2bc1557bfa3ef1d197b2e05
parenta386149fb2bad23b5c6123894049ce3392bf76b5
staging: comedi: amplc_dio200_common: remove some tests from amplc_dio200_common_detach()

`amplc_dio200_common_detach()` doesn't do much apart from freeing the
IRQ handler that was requested by `amplc_dio200_common_attach()` if
`dev->irq` is non-zero.  There is no need to check if the pointer to
the constant board data or the pointer to private per-device data
exist, so remove those tests.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_dio200_common.c