[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1621672648-39955-6-git-send-email-tanghui20@huawei.com>
Date: Sat, 22 May 2021 16:37:09 +0800
From: Hui Tang <tanghui20@...wei.com>
To: <jejb@...ux.ibm.com>, <martin.petersen@...cle.com>
CC: <linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<tanghui20@...wei.com>, Nilesh Javali <njavali@...vell.com>
Subject: [PATCH 05/24] scsi: qla2xxx: remove leading spaces before tabs
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@...vell.com>
Signed-off-by: Hui Tang <tanghui20@...wei.com>
---
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(®->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
Powered by blists - more mailing lists