scsi: qla2xxx: do not check login_state if no loop id is assigned
authorHannes Reinecke <hare@suse.de>
Thu, 22 Feb 2018 08:49:36 +0000 (09:49 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 2 Mar 2018 01:16:51 +0000 (20:16 -0500)
commit07ea4b6026ee8b8dfaf9bbe83a09b3ba905d20fd
treeb35a1144818ce9a20019f3c819ffaf757e182709
parent1c6cacf4ea6c04a58a0e3057f5ed60c24a4ffeff
scsi: qla2xxx: do not check login_state if no loop id is assigned

When no loop id is assigned in qla24xx_fcport_handle_login() the login
state needs to be ignored; it will get set later on in
qla_chk_n2n_b4_login().

Cc: Quinn Tran <quinn.tran@cavium.com>
Cc: Himanshu Madhani <himanshu.madhani@cavium.com>
Fixes: 040036bb0bc1 ("scsi: qla2xxx: Delay loop id allocation at login")
Signed-off-by: Hannes Reinecke <hare@suse.com>
Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c