mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hui Tang <tanghui20@huawei.com>
To: <jejb@linux.ibm.com>, <martin.petersen@oracle.com>
Cc: <linux-scsi@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<tanghui20@huawei.com>
Subject: [PATCH 20/24] scsi: mac53c94: remove leading spaces before tabs
Date: Sat, 22 May 2021 16:37:24 +0800	[thread overview]
Message-ID: <1621672648-39955-21-git-send-email-tanghui20@huawei.com> (raw)
In-Reply-To: <1621672648-39955-1-git-send-email-tanghui20@huawei.com>

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 <tanghui20@huawei.com>
---
 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


  parent reply	other threads:[~2021-05-22  8:41 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-22  8:37 [PATCH 00/24] scsi: " Hui Tang
2021-05-22  8:37 ` [PATCH 01/24] scsi: aacraid: " Hui Tang
2021-05-22  8:37 ` [PATCH 02/24] scsi: aic7xxx: " Hui Tang
2021-05-22  8:37 ` [PATCH 03/24] scsi: arm: " Hui Tang
2021-05-22  8:37 ` [PATCH 04/24] scsi: sym53c8xx: " Hui Tang
2021-05-22  8:37 ` [PATCH 05/24] scsi: qla2xxx: " Hui Tang
2021-05-22  8:37 ` [PATCH 06/24] scsi: arcmsr: " Hui Tang
2021-05-22  8:37 ` [PATCH 07/24] scsi: ibmvfc: " Hui Tang
2021-05-22  8:37 ` [PATCH 08/24] scsi: megaraid: " Hui Tang
2021-05-22  8:37 ` [PATCH 09/24] scsi: zalon: " Hui Tang
2021-05-22  8:37 ` [PATCH 10/24] scsi: wd33c93: " Hui Tang
2021-05-22  8:37 ` [PATCH 11/24] scsi: sun3_scsi: " Hui Tang
2021-05-22 22:37   ` Finn Thain
2021-05-22  8:37 ` [PATCH 12/24] scsi: scsi_transport_spi: " Hui Tang
2021-05-22  8:37 ` [PATCH 13/24] scsi: scsi_transport_fc: " Hui Tang
2021-05-22  8:37 ` [PATCH 14/24] scsi: proc: " Hui Tang
2021-05-22  8:37 ` [PATCH 15/24] scsi: qlogicfas408: " Hui Tang
2021-05-22  8:37 ` [PATCH 16/24] scsi: qla1280: remove leading space " Hui Tang
2021-05-22  8:37 ` [PATCH 17/24] scsi: pcmcia: remove leading spaces " Hui Tang
2021-05-22  8:37 ` [PATCH 18/24] scsi: ncr53c8xx: " Hui Tang
2021-05-22  8:37 ` [PATCH 19/24] scsi: mesh: " Hui Tang
2021-05-22  8:37 ` Hui Tang [this message]
2021-05-22  8:37 ` [PATCH 21/24] scsi: ips: " Hui Tang
2021-05-22  8:37 ` [PATCH 22/24] scsi: dpt_i2o: " Hui Tang
2021-05-22  8:37 ` [PATCH 23/24] scsi: dc395x: " Hui Tang
2021-05-22  8:37 ` [PATCH 24/24] scsi: aha1740: " Hui Tang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1621672648-39955-21-git-send-email-tanghui20@huawei.com \
    --to=tanghui20@huawei.com \
    --cc=jejb@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®