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>, Oliver Neukum <oliver@neukum.org>
Subject: [PATCH 23/24] scsi: dc395x: remove leading spaces before tabs
Date: Sat, 22 May 2021 16:37:27 +0800	[thread overview]
Message-ID: <1621672648-39955-24-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/'

Cc: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Hui Tang <tanghui20@huawei.com>
---
 drivers/scsi/dc395x.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c
index be87d5a..ccdbbf9 100644
--- a/drivers/scsi/dc395x.c
+++ b/drivers/scsi/dc395x.c
@@ -724,10 +724,10 @@ static struct DeviceCtlBlk *dcb_get_next(struct list_head *head,
 		}
 	/* if no next one take the head one (ie, wraparound) */
 	if (!next)
-        	list_for_each_entry(i, head, list) {
-        		next = i;
-        		break;
-        	}
+		list_for_each_entry(i, head, list) {
+			next = i;
+			break;
+		}
 
 	return next;
 }
@@ -4370,13 +4370,13 @@ static int adapter_init(struct AdapterCtlBlk *acb, unsigned long io_port,
 
 	/* get eeprom configuration information and command line settings etc */
 	check_eeprom(&acb->eeprom, io_port);
- 	print_eeprom_settings(&acb->eeprom);
+	print_eeprom_settings(&acb->eeprom);
 
 	/* setup adapter control block */	
 	adapter_init_params(acb);
 	
 	/* display card connectors/termination settings */
- 	adapter_print_config(acb);
+	adapter_print_config(acb);
 
 	if (adapter_sg_tables_alloc(acb)) {
 		dprintkl(KERN_DEBUG, "Memory allocation for SG tables failed\n");
@@ -4641,12 +4641,12 @@ static int dc395x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
 		dprintkl(KERN_INFO, "scsi_host_alloc failed\n");
 		goto fail;
 	}
- 	acb = (struct AdapterCtlBlk*)scsi_host->hostdata;
- 	acb->scsi_host = scsi_host;
- 	acb->dev = dev;
+	acb = (struct AdapterCtlBlk*)scsi_host->hostdata;
+	acb->scsi_host = scsi_host;
+	acb->dev = dev;
 
 	/* initialise the adapter and everything we need */
- 	if (adapter_init(acb, io_port_base, io_port_len, irq)) {
+	if (adapter_init(acb, io_port_base, io_port_len, irq)) {
 		dprintkl(KERN_INFO, "adapter init failed\n");
 		goto fail;
 	}
@@ -4660,7 +4660,7 @@ static int dc395x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
 	}
 	pci_set_drvdata(dev, scsi_host);
 	scsi_scan_host(scsi_host);
-        	
+
 	return 0;
 
 fail:
-- 
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 ` [PATCH 20/24] scsi: mac53c94: " Hui Tang
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 ` Hui Tang [this message]
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-24-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 \
    --cc=oliver@neukum.org \
    /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®