scsi: mpt3sas: simplify mpt3sas_scsi_issue_tm()
authorHannes Reinecke <hare@suse.de>
Thu, 4 Jan 2018 12:57:09 +0000 (04:57 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 11 Jan 2018 04:25:03 +0000 (23:25 -0500)
commit6da999fe5a9285c2a78f3cf1e768abcd48d7607e
tree2f94d832e08ed47f9d74d26e656618c5f208e083
parent74fcfa5371b7a681e864d3a9d3b9ecfd5737d8ea
scsi: mpt3sas: simplify mpt3sas_scsi_issue_tm()

Move the check for outstanding commands out of the function allowing us
to simplify the overall code.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Suganath Prabu S <suganath-prabu.subramani@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.h
drivers/scsi/mpt3sas/mpt3sas_ctl.c
drivers/scsi/mpt3sas/mpt3sas_scsih.c