diff options
-rw-r--r-- | drivers/scsi/qla2xxx/qla_attr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c index 679a4326811c..560641aa3a5c 100644 --- a/drivers/scsi/qla2xxx/qla_attr.c +++ b/drivers/scsi/qla2xxx/qla_attr.c | |||
@@ -1685,14 +1685,14 @@ static void | |||
1685 | qla2x00_get_host_fabric_name(struct Scsi_Host *shost) | 1685 | qla2x00_get_host_fabric_name(struct Scsi_Host *shost) |
1686 | { | 1686 | { |
1687 | scsi_qla_host_t *vha = shost_priv(shost); | 1687 | scsi_qla_host_t *vha = shost_priv(shost); |
1688 | u64 node_name; | 1688 | uint8_t node_name[WWN_SIZE] = { 0xFF, 0xFF, 0xFF, 0xFF, \ |
1689 | 0xFF, 0xFF, 0xFF, 0xFF}; | ||
1690 | u64 fabric_name = wwn_to_u64(node_name); | ||
1689 | 1691 | ||
1690 | if (vha->device_flags & SWITCH_FOUND) | 1692 | if (vha->device_flags & SWITCH_FOUND) |
1691 | node_name = wwn_to_u64(vha->fabric_node_name); | 1693 | fabric_name = wwn_to_u64(vha->fabric_node_name); |
1692 | else | ||
1693 | node_name = wwn_to_u64(vha->node_name); | ||
1694 | 1694 | ||
1695 | fc_host_fabric_name(shost) = node_name; | 1695 | fc_host_fabric_name(shost) = fabric_name; |
1696 | } | 1696 | } |
1697 | 1697 | ||
1698 | static void | 1698 | static void |