Commit 6058304a authored by Justin Tee's avatar Justin Tee Committed by Martin K. Petersen

scsi: lpfc: Fix space indentation in lpfc_xcvr_data_show()

The kernel test robot detected inconsistent indentations for an if
statement block in the lpfc_xcvr_data_show() routine.

This patch reduces the extraneous tabs used for the if statement block in
question.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarJustin Tee <justin.tee@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent e63d2ea8
...@@ -1942,30 +1942,22 @@ lpfc_xcvr_data_show(struct device *dev, struct device_attribute *attr, ...@@ -1942,30 +1942,22 @@ lpfc_xcvr_data_show(struct device *dev, struct device_attribute *attr,
len += scnprintf(buf + len, PAGE_SIZE - len, "Speeds: \t"); len += scnprintf(buf + len, PAGE_SIZE - len, "Speeds: \t");
if (*(uint8_t *)trasn_code_byte7 == 0) { if (*(uint8_t *)trasn_code_byte7 == 0) {
len += scnprintf(buf + len, PAGE_SIZE - len, len += scnprintf(buf + len, PAGE_SIZE - len, "Unknown\n");
"Unknown\n");
} else { } else {
if (trasn_code_byte7->fc_sp_100MB) if (trasn_code_byte7->fc_sp_100MB)
len += scnprintf(buf + len, PAGE_SIZE - len, len += scnprintf(buf + len, PAGE_SIZE - len, "1 ");
"1 ");
if (trasn_code_byte7->fc_sp_200mb) if (trasn_code_byte7->fc_sp_200mb)
len += scnprintf(buf + len, PAGE_SIZE - len, len += scnprintf(buf + len, PAGE_SIZE - len, "2 ");
"2 ");
if (trasn_code_byte7->fc_sp_400MB) if (trasn_code_byte7->fc_sp_400MB)
len += scnprintf(buf + len, PAGE_SIZE - len, len += scnprintf(buf + len, PAGE_SIZE - len, "4 ");
"4 ");
if (trasn_code_byte7->fc_sp_800MB) if (trasn_code_byte7->fc_sp_800MB)
len += scnprintf(buf + len, PAGE_SIZE - len, len += scnprintf(buf + len, PAGE_SIZE - len, "8 ");
"8 ");
if (trasn_code_byte7->fc_sp_1600MB) if (trasn_code_byte7->fc_sp_1600MB)
len += scnprintf(buf + len, PAGE_SIZE - len, len += scnprintf(buf + len, PAGE_SIZE - len, "16 ");
"16 ");
if (trasn_code_byte7->fc_sp_3200MB) if (trasn_code_byte7->fc_sp_3200MB)
len += scnprintf(buf + len, PAGE_SIZE - len, len += scnprintf(buf + len, PAGE_SIZE - len, "32 ");
"32 ");
if (trasn_code_byte7->speed_chk_ecc) if (trasn_code_byte7->speed_chk_ecc)
len += scnprintf(buf + len, PAGE_SIZE - len, len += scnprintf(buf + len, PAGE_SIZE - len, "64 ");
"64 ");
len += scnprintf(buf + len, PAGE_SIZE - len, "GB\n"); len += scnprintf(buf + len, PAGE_SIZE - len, "GB\n");
} }
temperature = (rdp_context->page_a2[SFF_TEMPERATURE_B1] << 8 | temperature = (rdp_context->page_a2[SFF_TEMPERATURE_B1] << 8 |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment