diff options
-rw-r--r-- | drivers/scsi/qla2xxx/qla_attr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index d416c3599e38..5c98b097cfda 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c | |||
@@ -987,7 +987,8 @@ qla2x00_link_state_show(struct device *dev, struct device_attribute *attr, | |||
987 | int len = 0; | 987 | int len = 0; |
988 | 988 | ||
989 | if (atomic_read(&vha->loop_state) == LOOP_DOWN || | 989 | if (atomic_read(&vha->loop_state) == LOOP_DOWN || |
990 | atomic_read(&vha->loop_state) == LOOP_DEAD) | 990 | atomic_read(&vha->loop_state) == LOOP_DEAD || |
991 | vha->device_flags & DFLG_NO_CABLE) | ||
991 | len = snprintf(buf, PAGE_SIZE, "Link Down\n"); | 992 | len = snprintf(buf, PAGE_SIZE, "Link Down\n"); |
992 | else if (atomic_read(&vha->loop_state) != LOOP_READY || | 993 | else if (atomic_read(&vha->loop_state) != LOOP_READY || |
993 | test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) || | 994 | test_bit(ABORT_ISP_ACTIVE, &vha->dpc_flags) || |