Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1783552pxj; Sat, 22 May 2021 01:46:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwM+eg2e8/fUkKuNu2wMe5o6EhUTibGNyCE3LLqxPv6pti0nEuQ3fJIBKNEIAQBjbrb152t X-Received: by 2002:a17:906:dfcb:: with SMTP id jt11mr13645864ejc.362.1621673196987; Sat, 22 May 2021 01:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621673196; cv=none; d=google.com; s=arc-20160816; b=qCwP9KwvVBYtaeynJACmURRQnOirkeLYTCK9DrVTOEizSnbctu33ZG4Cw2/Z2gWCsE jeFiRjIeI0hG6mN9XjHjgUMoTgDN6DCMzR1jwFako1koJPdUQRgxx0JOKYiiKGW1XwuA YBWdNYZDkRJ8cDrCzxHgPbPivu29ZKHsT5L6B4sRcS+RWcU5nAnOlE/C4GGjh0xAnAup MjVyPT7WvsVNdtooW8nC6TLcIFWIOtfIl3AuQtXx1p437o1Ry63Ycip8d1QhFhL/pFPj X+xf3YZ4WQIAA8ofSkqxs2CmT8cuiIkTz4vLZ3o2RfZ2V6we2CJeMHzoj1450T2Gz9kc UR4w== 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=T2PkTEK+LF3/7LHv6kuGDPeSbPjO+svNgfx7VV2pCNs=; b=Ka2gFuB1sF8XMBEXst2wUGaQrhfhKjg04NV/30bgo3188liEvNNh2kRgf/igGFRCG4 0QrZmoJcldKvCeZ+s9pZTQOtTd94cvHaShrJbXgGlAnrSqUJGPG/hq4RJYFbZiKjwmC8 slY+JByGHDjv7+jq9LtEs89p1VzbmuIDAs4Y0K32L023QIXo5eFhuQaDkB7CVE5RocAr Ama3dQE9FJ9KiAPgNrG7U7gU+zzXqTlEPCYWOgVUReeNW5L8I46DkA/hx7W0NuP9RQ+6 joBAjYIaYK0VQPok9KqJuexO+lXRPyDdAetP2ci0iAIyAnnhzA7l7L0YIPwYN0y3Sge2 Ki9A== 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 t26si7370806ejd.446.2021.05.22.01.46.14; Sat, 22 May 2021 01:46:36 -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 S231431AbhEVInE (ORCPT + 99 others); Sat, 22 May 2021 04:43:04 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:3909 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbhEVImH (ORCPT ); Sat, 22 May 2021 04:42:07 -0400 Received: from dggems703-chm.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FnH0w1bmjzBv0l; Sat, 22 May 2021 16:37:52 +0800 (CST) Received: from dggemi760-chm.china.huawei.com (10.1.198.146) by dggems703-chm.china.huawei.com (10.3.19.180) 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:41 +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:40 +0800 From: Hui Tang To: , CC: , , Subject: [PATCH 20/24] scsi: mac53c94: remove leading spaces before tabs Date: Sat, 22 May 2021 16:37:24 +0800 Message-ID: <1621672648-39955-21-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/' Signed-off-by: Hui Tang --- drivers/scsi/mac53c94.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/scsi/mac53c94.c b/drivers/scsi/mac53c94.c index ec9840d..f13c1cd 100644 --- a/drivers/scsi/mac53c94.c +++ b/drivers/scsi/mac53c94.c @@ -424,11 +424,11 @@ static int mac53c94_probe(struct macio_dev *mdev, const struct of_device_id *mat } if (macio_request_resources(mdev, "mac53c94") != 0) { - printk(KERN_ERR "mac53c94: unable to request memory resources"); + printk(KERN_ERR "mac53c94: unable to request memory resources"); return -EBUSY; } - host = scsi_host_alloc(&mac53c94_template, sizeof(struct fsc_state)); + host = scsi_host_alloc(&mac53c94_template, sizeof(struct fsc_state)); if (host == NULL) { printk(KERN_ERR "mac53c94: couldn't register host"); rc = -ENOMEM; @@ -453,18 +453,18 @@ static int mac53c94_probe(struct macio_dev *mdev, const struct of_device_id *mat } clkprop = of_get_property(node, "clock-frequency", &proplen); - if (clkprop == NULL || proplen != sizeof(int)) { - printk(KERN_ERR "%pOF: can't get clock frequency, " - "assuming 25MHz\n", node); - state->clk_freq = 25000000; - } else - state->clk_freq = *(int *)clkprop; - - /* Space for dma command list: +1 for stop command, - * +1 to allow for aligning. + if (clkprop == NULL || proplen != sizeof(int)) { + printk(KERN_ERR "%pOF: can't get clock frequency, " + "assuming 25MHz\n", node); + state->clk_freq = 25000000; + } else + state->clk_freq = *(int *)clkprop; + + /* Space for dma command list: +1 for stop command, + * +1 to allow for aligning. * XXX FIXME: Use DMA consistent routines */ - dma_cmd_space = kmalloc_array(host->sg_tablesize + 2, + dma_cmd_space = kmalloc_array(host->sg_tablesize + 2, sizeof(struct dbdma_cmd), GFP_KERNEL); if (!dma_cmd_space) { -- 2.8.1