Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1782040pxj; Sat, 22 May 2021 01:43:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMMz9wKq464+nLvV9RfsfUTz5W+B7/LIYWR9+gcgsDapZm8yUoQqpYBS0rYRrfV0O4NHm5 X-Received: by 2002:aa7:c787:: with SMTP id n7mr15506023eds.309.1621673023095; Sat, 22 May 2021 01:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621673023; cv=none; d=google.com; s=arc-20160816; b=XBfWoq/YaSEZ/F40TzfHAh34ZPYXwPutoOCTLY+2Bz+G0KVj09PI4ja0K0K85iI70p CjXZdRTSiHbHPQrd0E+LQYnQ9ld5bjVXRjYu4iJvv4AZadlb6aTdV/7s/123q25RZML/ 0u7fUkRGYRZQ35mK72nvZK7BT1hnNECrXXAtZyDVf/n0dZGVgP12/3/dXSQOGB8jRrTB qMSvwHqLVj2sDQsUtqqwqrqK5lITbgiuYB6PkGEH/qNlc+laBuwQk0x46auQRDJw9lQN HGDhcj3tgvH/Qvox3pR837jfYlhqcIAGrYyOA+djn4Q51n1/3QGMZ+jjssWdFVB/IyLK 20uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=6z7SA60sLkvDlE4heYeK7TG5rv8qtJuq4YfUzDCzoRM=; b=deEfCDkVTDi1JrPijtcfFWN+fjaDt2k0j9GeEhe5/M1HvTsQadntMFXD1VgaW6pt4N NR+WgFmWsVi+oZ5TU5Gw8KvhuOGY3+oCqO7yd8XONGbgc5w2fXLL0mjFDY4ZqOq+GuYb I/kQ5RkCslFHo+XnpkGuDATirtA3sQS4NvCVVZmPB8McVMrSGw+nRE99u1v4I00a5f0h v73/4rYPk7qPhfFyBETpt5tPtiUW0kt67vimmOk4e0+nmwJ/xwj/YPvfpQh49/w7DWwS 7Q1q+WhtXs3EJ5xuHtwUbXBQlsLwqGdEsWK3Ku8gqY5jSQ5GZyWIdaURM9TL8Wgdb+3Z rBvw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si8054615ejj.367.2021.05.22.01.42.46; Sat, 22 May 2021 01:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231138AbhEVImX (ORCPT + 99 others); Sat, 22 May 2021 04:42:23 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4578 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230168AbhEVImF (ORCPT ); Sat, 22 May 2021 04:42:05 -0400 Received: from dggems702-chm.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FnH0t47v1zsT65; Sat, 22 May 2021 16:37:50 +0800 (CST) Received: from dggemi760-chm.china.huawei.com (10.1.198.146) by dggems702-chm.china.huawei.com (10.3.19.179) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Sat, 22 May 2021 16:40:38 +0800 Received: from localhost.localdomain (10.67.165.24) by dggemi760-chm.china.huawei.com (10.1.198.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Sat, 22 May 2021 16:40:38 +0800 From: Hui Tang To: , CC: , , , Nilesh Javali Subject: [PATCH 05/24] scsi: qla2xxx: remove leading spaces before tabs Date: Sat, 22 May 2021 16:37:09 +0800 Message-ID: <1621672648-39955-6-git-send-email-tanghui20@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1621672648-39955-1-git-send-email-tanghui20@huawei.com> References: <1621672648-39955-1-git-send-email-tanghui20@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggemi760-chm.china.huawei.com (10.1.198.146) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Hui Tang --- 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