lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230208065244.62762-1-jiapeng.chong@linux.alibaba.com>
Date:   Wed,  8 Feb 2023 14:52:44 +0800
From:   Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To:     aacraid@...rosemi.com
Cc:     jejb@...ux.ibm.com, martin.petersen@...cle.com,
        linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
        Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>,
        Abaci Robot <abaci@...ux.alibaba.com>
Subject: [PATCH] scsi: ips: clean up some inconsistent indenting

No functional modification involved.

drivers/scsi/ips.c:2080 ips_host_info() warn: inconsistent indenting.

Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3993
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
---
 drivers/scsi/ips.c | 114 ++++++++++++++++++++++-----------------------
 1 file changed, 57 insertions(+), 57 deletions(-)

diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c
index bb206509265e..7f958871388a 100644
--- a/drivers/scsi/ips.c
+++ b/drivers/scsi/ips.c
@@ -2054,79 +2054,79 @@ ips_host_info(ips_ha_t *ha, struct seq_file *m)
 
 	seq_printf(m, "\tIRQ number                        : %d\n", ha->pcidev->irq);
 
-    /* For the Next 3 lines Check for Binary 0 at the end and don't include it if it's there. */
-    /* That keeps everything happy for "text" operations on the proc file.                    */
+	/* For the Next 3 lines Check for Binary 0 at the end and don't include it if it's there. */
+	/* That keeps everything happy for "text" operations on the proc file.                    */
 
 	if (le32_to_cpu(ha->nvram->signature) == IPS_NVRAM_P5_SIG) {
-	if (ha->nvram->bios_low[3] == 0) {
-		seq_printf(m,
-			  "\tBIOS Version                      : %c%c%c%c%c%c%c\n",
-			  ha->nvram->bios_high[0], ha->nvram->bios_high[1],
-			  ha->nvram->bios_high[2], ha->nvram->bios_high[3],
-			  ha->nvram->bios_low[0], ha->nvram->bios_low[1],
-			  ha->nvram->bios_low[2]);
+		if (ha->nvram->bios_low[3] == 0) {
+			seq_printf(m,
+				   "\tBIOS Version                      : %c%c%c%c%c%c%c\n",
+				   ha->nvram->bios_high[0], ha->nvram->bios_high[1],
+				   ha->nvram->bios_high[2], ha->nvram->bios_high[3],
+				   ha->nvram->bios_low[0], ha->nvram->bios_low[1],
+				   ha->nvram->bios_low[2]);
+
+		} else {
+			seq_printf(m,
+				   "\tBIOS Version                      : %c%c%c%c%c%c%c%c\n",
+				   ha->nvram->bios_high[0], ha->nvram->bios_high[1],
+				   ha->nvram->bios_high[2], ha->nvram->bios_high[3],
+				   ha->nvram->bios_low[0], ha->nvram->bios_low[1],
+				   ha->nvram->bios_low[2], ha->nvram->bios_low[3]);
+		}
 
-        } else {
+	}
+
+	if (ha->enq->CodeBlkVersion[7] == 0) {
 		seq_printf(m,
-			  "\tBIOS Version                      : %c%c%c%c%c%c%c%c\n",
-			  ha->nvram->bios_high[0], ha->nvram->bios_high[1],
-			  ha->nvram->bios_high[2], ha->nvram->bios_high[3],
-			  ha->nvram->bios_low[0], ha->nvram->bios_low[1],
-			  ha->nvram->bios_low[2], ha->nvram->bios_low[3]);
-        }
+			   "\tFirmware Version                  : %c%c%c%c%c%c%c\n",
+			   ha->enq->CodeBlkVersion[0], ha->enq->CodeBlkVersion[1],
+			   ha->enq->CodeBlkVersion[2], ha->enq->CodeBlkVersion[3],
+			   ha->enq->CodeBlkVersion[4], ha->enq->CodeBlkVersion[5],
+			   ha->enq->CodeBlkVersion[6]);
+	} else {
+		seq_printf(m,
+			   "\tFirmware Version                  : %c%c%c%c%c%c%c%c\n",
+			   ha->enq->CodeBlkVersion[0], ha->enq->CodeBlkVersion[1],
+			   ha->enq->CodeBlkVersion[2], ha->enq->CodeBlkVersion[3],
+			   ha->enq->CodeBlkVersion[4], ha->enq->CodeBlkVersion[5],
+			   ha->enq->CodeBlkVersion[6], ha->enq->CodeBlkVersion[7]);
+	}
 
-    }
-
-    if (ha->enq->CodeBlkVersion[7] == 0) {
-        seq_printf(m,
-		  "\tFirmware Version                  : %c%c%c%c%c%c%c\n",
-		  ha->enq->CodeBlkVersion[0], ha->enq->CodeBlkVersion[1],
-		  ha->enq->CodeBlkVersion[2], ha->enq->CodeBlkVersion[3],
-		  ha->enq->CodeBlkVersion[4], ha->enq->CodeBlkVersion[5],
-		  ha->enq->CodeBlkVersion[6]);
-    } else {
-	seq_printf(m,
-		  "\tFirmware Version                  : %c%c%c%c%c%c%c%c\n",
-		  ha->enq->CodeBlkVersion[0], ha->enq->CodeBlkVersion[1],
-		  ha->enq->CodeBlkVersion[2], ha->enq->CodeBlkVersion[3],
-		  ha->enq->CodeBlkVersion[4], ha->enq->CodeBlkVersion[5],
-		  ha->enq->CodeBlkVersion[6], ha->enq->CodeBlkVersion[7]);
-    }
-
-    if (ha->enq->BootBlkVersion[7] == 0) {
-        seq_printf(m,
-		  "\tBoot Block Version                : %c%c%c%c%c%c%c\n",
-		  ha->enq->BootBlkVersion[0], ha->enq->BootBlkVersion[1],
-		  ha->enq->BootBlkVersion[2], ha->enq->BootBlkVersion[3],
-		  ha->enq->BootBlkVersion[4], ha->enq->BootBlkVersion[5],
-		  ha->enq->BootBlkVersion[6]);
-    } else {
-        seq_printf(m,
-		  "\tBoot Block Version                : %c%c%c%c%c%c%c%c\n",
-		  ha->enq->BootBlkVersion[0], ha->enq->BootBlkVersion[1],
-		  ha->enq->BootBlkVersion[2], ha->enq->BootBlkVersion[3],
-		  ha->enq->BootBlkVersion[4], ha->enq->BootBlkVersion[5],
-		  ha->enq->BootBlkVersion[6], ha->enq->BootBlkVersion[7]);
-    }
+	if (ha->enq->BootBlkVersion[7] == 0) {
+		seq_printf(m,
+			   "\tBoot Block Version                : %c%c%c%c%c%c%c\n",
+			   ha->enq->BootBlkVersion[0], ha->enq->BootBlkVersion[1],
+			   ha->enq->BootBlkVersion[2], ha->enq->BootBlkVersion[3],
+			   ha->enq->BootBlkVersion[4], ha->enq->BootBlkVersion[5],
+			   ha->enq->BootBlkVersion[6]);
+	} else {
+		seq_printf(m,
+			   "\tBoot Block Version                : %c%c%c%c%c%c%c%c\n",
+			   ha->enq->BootBlkVersion[0], ha->enq->BootBlkVersion[1],
+			   ha->enq->BootBlkVersion[2], ha->enq->BootBlkVersion[3],
+			   ha->enq->BootBlkVersion[4], ha->enq->BootBlkVersion[5],
+			   ha->enq->BootBlkVersion[6], ha->enq->BootBlkVersion[7]);
+	}
 
 	seq_printf(m, "\tDriver Version                    : %s%s\n",
-		  IPS_VERSION_HIGH, IPS_VERSION_LOW);
+		   IPS_VERSION_HIGH, IPS_VERSION_LOW);
 
 	seq_printf(m, "\tDriver Build                      : %d\n",
-		  IPS_BUILD_IDENT);
+		   IPS_BUILD_IDENT);
 
 	seq_printf(m, "\tMax Physical Devices              : %d\n",
-		  ha->enq->ucMaxPhysicalDevices);
+		   ha->enq->ucMaxPhysicalDevices);
 	seq_printf(m, "\tMax Active Commands               : %d\n",
-		  ha->max_cmds);
+		   ha->max_cmds);
 	seq_printf(m, "\tCurrent Queued Commands           : %d\n",
-		  ha->scb_waitlist.count);
+		   ha->scb_waitlist.count);
 	seq_printf(m, "\tCurrent Active Commands           : %d\n",
-		  ha->scb_activelist.count - ha->num_ioctl);
+		   ha->scb_activelist.count - ha->num_ioctl);
 	seq_printf(m, "\tCurrent Queued PT Commands        : %d\n",
-		  ha->copp_waitlist.count);
+		   ha->copp_waitlist.count);
 	seq_printf(m, "\tCurrent Active PT Commands        : %d\n",
-		  ha->num_ioctl);
+		   ha->num_ioctl);
 
 	seq_putc(m, '\n');
 
-- 
2.20.1.7.g153144c

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ