OSDN Git Service

staging: comedi: jr3_pci: remove unneeded 'spriv' checks
authorIan Abbott <abbotti@mev.co.uk>
Fri, 17 Feb 2017 11:09:13 +0000 (11:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:16:58 +0000 (09:16 +0100)
commit67aa069d9354299cfdd45d6a6287f593e7258f33
tree7ffb4403a327835f5efe33394a740cdc5aa129e7
parent048ad49af32fe910259bc5f1a49f464b63a03029
staging: comedi: jr3_pci: remove unneeded 'spriv' checks

If `jr3_pci_auto_attach()` returns with no error, we can now be sure
that the COMEDI subdevice private data structures have been allocated.
Remove the tests for a valid pointer to the private data structure in
`jr3_pci_ai_insn_read()`, `jr3_pci_open()`, and
`jr3_pci_poll_subdevice()`, since they will not be called if the pointer
is invalid.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/jr3_pci.c