diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_target.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 8075a4cdb45c..2c71305d2563 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c | |||
@@ -3580,12 +3580,13 @@ static void qlt_do_ctio_completion(struct scsi_qla_host *vha, uint32_t handle, | |||
3580 | case CTIO_PORT_LOGGED_OUT: | 3580 | case CTIO_PORT_LOGGED_OUT: |
3581 | case CTIO_PORT_UNAVAILABLE: | 3581 | case CTIO_PORT_UNAVAILABLE: |
3582 | { | 3582 | { |
3583 | int logged_out = (status & 0xFFFF); | 3583 | int logged_out = |
3584 | (status & 0xFFFF) == CTIO_PORT_LOGGED_OUT; | ||
3585 | |||
3584 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf059, | 3586 | ql_dbg(ql_dbg_tgt_mgt, vha, 0xf059, |
3585 | "qla_target(%d): CTIO with %s status %x " | 3587 | "qla_target(%d): CTIO with %s status %x " |
3586 | "received (state %x, se_cmd %p)\n", vha->vp_idx, | 3588 | "received (state %x, se_cmd %p)\n", vha->vp_idx, |
3587 | (logged_out == CTIO_PORT_LOGGED_OUT) ? | 3589 | logged_out ? "PORT LOGGED OUT" : "PORT UNAVAILABLE", |
3588 | "PORT LOGGED OUT" : "PORT UNAVAILABLE", | ||
3589 | status, cmd->state, se_cmd); | 3590 | status, cmd->state, se_cmd); |
3590 | 3591 | ||
3591 | if (logged_out && cmd->sess) { | 3592 | if (logged_out && cmd->sess) { |