scsi: lpfc: Fix space indentation in lpfc_xcvr_data_show()
authorJustin Tee <justin.tee@broadcom.com>
Mon, 9 Jan 2023 23:33:06 +0000 (15:33 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 12 Jan 2023 05:03:14 +0000 (00:03 -0500)
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: kernel test robot <lkp@intel.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_attr.c

index 77e1b29..9df90c0 100644 (file)
@@ -1941,33 +1941,25 @@ lpfc_xcvr_data_show(struct device *dev, struct device_attribute *attr,
                        &rdp_context->page_a0[SSF_TRANSCEIVER_CODE_B7];
 
        len += scnprintf(buf + len, PAGE_SIZE - len, "Speeds: \t");
-               if (*(uint8_t *)trasn_code_byte7 == 0) {
-                       len += scnprintf(buf + len, PAGE_SIZE - len,
-                                        "Unknown\n");
-               } else {
-                       if (trasn_code_byte7->fc_sp_100MB)
-                               len += scnprintf(buf + len, PAGE_SIZE - len,
-                                                "1 ");
-                       if (trasn_code_byte7->fc_sp_200mb)
-                               len += scnprintf(buf + len, PAGE_SIZE - len,
-                                                "2 ");
-                       if (trasn_code_byte7->fc_sp_400MB)
-                               len += scnprintf(buf + len, PAGE_SIZE - len,
-                                                "4 ");
-                       if (trasn_code_byte7->fc_sp_800MB)
-                               len += scnprintf(buf + len, PAGE_SIZE - len,
-                                                "8 ");
-                       if (trasn_code_byte7->fc_sp_1600MB)
-                               len += scnprintf(buf + len, PAGE_SIZE - len,
-                                                "16 ");
-                       if (trasn_code_byte7->fc_sp_3200MB)
-                               len += scnprintf(buf + len, PAGE_SIZE - len,
-                                                "32 ");
-                       if (trasn_code_byte7->speed_chk_ecc)
-                               len += scnprintf(buf + len, PAGE_SIZE - len,
-                                                "64 ");
-                       len += scnprintf(buf + len, PAGE_SIZE - len, "GB\n");
-               }
+       if (*(uint8_t *)trasn_code_byte7 == 0) {
+               len += scnprintf(buf + len, PAGE_SIZE - len, "Unknown\n");
+       } else {
+               if (trasn_code_byte7->fc_sp_100MB)
+                       len += scnprintf(buf + len, PAGE_SIZE - len, "1 ");
+               if (trasn_code_byte7->fc_sp_200mb)
+                       len += scnprintf(buf + len, PAGE_SIZE - len, "2 ");
+               if (trasn_code_byte7->fc_sp_400MB)
+                       len += scnprintf(buf + len, PAGE_SIZE - len, "4 ");
+               if (trasn_code_byte7->fc_sp_800MB)
+                       len += scnprintf(buf + len, PAGE_SIZE - len, "8 ");
+               if (trasn_code_byte7->fc_sp_1600MB)
+                       len += scnprintf(buf + len, PAGE_SIZE - len, "16 ");
+               if (trasn_code_byte7->fc_sp_3200MB)
+                       len += scnprintf(buf + len, PAGE_SIZE - len, "32 ");
+               if (trasn_code_byte7->speed_chk_ecc)
+                       len += scnprintf(buf + len, PAGE_SIZE - len, "64 ");
+               len += scnprintf(buf + len, PAGE_SIZE - len, "GB\n");
+       }
        temperature = (rdp_context->page_a2[SFF_TEMPERATURE_B1] << 8 |
                       rdp_context->page_a2[SFF_TEMPERATURE_B0]);
        vcc = (rdp_context->page_a2[SFF_VCC_B1] << 8 |