[PATCH 05/24] scsi: qla2xxx: remove leading spaces before tabs

From: Hui Tang
Date: Sat May 22 2021 - 04:41:02 EST


There are a few leading spaces before tabs and remove it by running
the following commard:

$ find . -name '*.[ch]' | xargs sed -r -i 's/^[ ]+\t/\t/'

Cc: Nilesh Javali <njavali@xxxxxxxxxxx>
Signed-off-by: Hui Tang <tanghui20@xxxxxxxxxx>
---
drivers/scsi/qla2xxx/qla_dbg.c | 4 ++--
drivers/scsi/qla2xxx/qla_mbx.c | 32 ++++++++++++++++----------------
2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c
index f2d0559..03c248a 100644
--- a/drivers/scsi/qla2xxx/qla_dbg.c
+++ b/drivers/scsi/qla2xxx/qla_dbg.c
@@ -1032,12 +1032,12 @@ qla2100_fw_dump(scsi_qla_host_t *vha)
if (rval == QLA_SUCCESS) {
/* Get RISC SRAM. */
risc_address = 0x1000;
- WRT_MAILBOX_REG(ha, reg, 0, MBC_READ_RAM_WORD);
+ WRT_MAILBOX_REG(ha, reg, 0, MBC_READ_RAM_WORD);
clear_bit(MBX_INTERRUPT, &ha->mbx_cmd_flags);
}
for (cnt = 0; cnt < ARRAY_SIZE(fw->risc_ram) && rval == QLA_SUCCESS;
cnt++, risc_address++) {
- WRT_MAILBOX_REG(ha, reg, 1, risc_address);
+ WRT_MAILBOX_REG(ha, reg, 1, risc_address);
wrt_reg_word(&reg->hccr, HCCR_SET_HOST_INT);

for (timer = 6000000; timer != 0; timer--) {
diff --git a/drivers/scsi/qla2xxx/qla_mbx.c b/drivers/scsi/qla2xxx/qla_mbx.c
index 0bcd8af..1a7891c 100644
--- a/drivers/scsi/qla2xxx/qla_mbx.c
+++ b/drivers/scsi/qla2xxx/qla_mbx.c
@@ -2708,28 +2708,28 @@ qla2x00_login_local_device(scsi_qla_host_t *vha, fc_port_t *fcport,
mcp->mb[1] = fcport->loop_id << 8;
mcp->mb[2] = opt;
mcp->out_mb = MBX_2|MBX_1|MBX_0;
- mcp->in_mb = MBX_7|MBX_6|MBX_1|MBX_0;
+ mcp->in_mb = MBX_7|MBX_6|MBX_1|MBX_0;
mcp->tov = (ha->login_timeout * 2) + (ha->login_timeout / 2);
mcp->flags = 0;
rval = qla2x00_mailbox_command(vha, mcp);

- /* Return mailbox statuses. */
- if (mb_ret != NULL) {
- mb_ret[0] = mcp->mb[0];
- mb_ret[1] = mcp->mb[1];
- mb_ret[6] = mcp->mb[6];
- mb_ret[7] = mcp->mb[7];
- }
+ /* Return mailbox statuses. */
+ if (mb_ret != NULL) {
+ mb_ret[0] = mcp->mb[0];
+ mb_ret[1] = mcp->mb[1];
+ mb_ret[6] = mcp->mb[6];
+ mb_ret[7] = mcp->mb[7];
+ }

if (rval != QLA_SUCCESS) {
- /* AV tmp code: need to change main mailbox_command function to
- * return ok even when the mailbox completion value is not
- * SUCCESS. The caller needs to be responsible to interpret
- * the return values of this mailbox command if we're not
- * to change too much of the existing code.
- */
- if (mcp->mb[0] == 0x4005 || mcp->mb[0] == 0x4006)
- rval = QLA_SUCCESS;
+ /* AV tmp code: need to change main mailbox_command function to
+ * return ok even when the mailbox completion value is not
+ * SUCCESS. The caller needs to be responsible to interpret
+ * the return values of this mailbox command if we're not
+ * to change too much of the existing code.
+ */
+ if (mcp->mb[0] == 0x4005 || mcp->mb[0] == 0x4006)
+ rval = QLA_SUCCESS;

ql_dbg(ql_dbg_mbx, vha, 0x106b,
"Failed=%x mb[0]=%x mb[1]=%x mb[6]=%x mb[7]=%x.\n",
--
2.8.1