scsi: qla2xxx: Fix PRLI state check
authorQuinn Tran <[email protected]>
Mon, 4 Dec 2017 22:45:08 +0000 (14:45 -0800)
committerMartin K. Petersen <[email protected]>
Fri, 8 Dec 2017 02:07:06 +0000 (21:07 -0500)
commit23c645595dab7b414f23639d0a428a07515807df
tree5b62b431c75074a21d3c446a300f930e82efd71a
parent4005a995668b8fd58f4cf1460dd4cf63efa18363
scsi: qla2xxx: Fix PRLI state check

Get Port Database MBX cmd is to validate current Login state upon PRLI
completion. Current code looks at the last login state for re-validation
which was incorrect. This patch removed incorrect state check.

Fixes: 15f30a5752287 ("qla2xxx: Use IOCB interface to submit non-critical MBX.")
Cc: <[email protected]> # 4.10+
Signed-off-by: Quinn Tran <[email protected]>
Signed-off-by: Himanshu Madhani <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
drivers/scsi/qla2xxx/qla_mbx.c