diff options
| author | Ian Abbott <abbotti@mev.co.uk> | 2014-07-25 18:07:09 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-30 16:47:44 -0700 |
| commit | 5d3d4b26f585e09159d3059a7459ab43eaed39a8 (patch) | |
| tree | ac60d94ed6386dab2ff964c1054b5bcfa64dd700 /tools/perf/scripts/python | |
| parent | ffe29dc6668b9bf0e102fda8f6f52b239c5b83f4 (diff) | |
staging: comedi: amplc_dio200_pci: no need to test board pointer in dio200_pci_detach()
`dio200_pci_detach()` doesn't need to check if the pointer to constant
board data (`thisboard`) and the pointer to private per-device data
(`devpriv`) are valid before calling `amplc_dio200_common_detach()`. It
has no further need to check `thisboard` so remove the variable
altogether. Move the test of `devpriv` to the first point it is needs
to be valid.
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
