From: chenguohua@jari.cn
To: gotom@debian.or.jp, yokota@netlab.is.tsukuba.ac.jp,
jejb@linux.ibm.com, martin.petersen@oracle.com
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] scsi: Clean up errors in nsp32_io.h
Date: Wed, 27 Sep 2023 16:24:13 +0800 (GMT+08:00) [thread overview]
Message-ID: <7612214f.888.18ad5bd14bc.Coremail.chenguohua@jari.cn> (raw)
Fix the following errors reported by checkpatch:
ERROR: space prohibited before that close parenthesis ')'
ERROR: space required after that ',' (ctx:VxV)
Signed-off-by: GuoHua Cheng <chenguohua@jari.cn>
---
drivers/scsi/nsp32_io.h | 18 +++++++++---------
drivers/scsi/scsi_pm.c | 4 ++--
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/drivers/scsi/nsp32_io.h b/drivers/scsi/nsp32_io.h
index e3f3c27b01ef..5902f3035afa 100644
--- a/drivers/scsi/nsp32_io.h
+++ b/drivers/scsi/nsp32_io.h
@@ -126,7 +126,7 @@ static inline void nsp32_index_write1(unsigned int base,
unsigned int reg,
unsigned char val)
{
- outb(reg, base + INDEX_REG );
+ outb(reg, base + INDEX_REG);
outb(val, base + DATA_REG_LOW);
}
@@ -141,18 +141,18 @@ static inline void nsp32_index_write2(unsigned int base,
unsigned int reg,
unsigned short val)
{
- outb(reg, base + INDEX_REG );
+ outb(reg, base + INDEX_REG);
outw(val, base + DATA_REG_LOW);
}
static inline unsigned long nsp32_index_read4(unsigned int base,
unsigned int reg)
{
- unsigned long h,l;
+ unsigned long h, l;
outb(reg, base + INDEX_REG);
l = inw(base + DATA_REG_LOW);
- h = inw(base + DATA_REG_HI );
+ h = inw(base + DATA_REG_HI);
return ((h << 16) | l);
}
@@ -161,14 +161,14 @@ static inline void nsp32_index_write4(unsigned int base,
unsigned int reg,
unsigned long val)
{
- unsigned long h,l;
+ unsigned long h, l;
h = (val & 0xffff0000) >> 16;
l = (val & 0x0000ffff) >> 0;
- outb(reg, base + INDEX_REG );
+ outb(reg, base + INDEX_REG);
outw(l, base + DATA_REG_LOW);
- outw(h, base + DATA_REG_HI );
+ outw(h, base + DATA_REG_HI);
}
/*==============================================*/
@@ -195,7 +195,7 @@ static inline void nsp32_mmio_index_write1(unsigned long base,
data_ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + DATA_REG_LOW);
writeb(reg, index_ptr);
- writeb(val, data_ptr );
+ writeb(val, data_ptr);
}
static inline unsigned short nsp32_mmio_index_read2(unsigned long base,
@@ -220,7 +220,7 @@ static inline void nsp32_mmio_index_write2(unsigned long base,
data_ptr = (unsigned short *)(base + NSP32_MMIO_OFFSET + DATA_REG_LOW);
writeb(reg, index_ptr);
- writew(cpu_to_le16(val), data_ptr );
+ writew(cpu_to_le16(val), data_ptr);
}
/*==============================================*/
diff --git a/drivers/scsi/scsi_pm.c b/drivers/scsi/scsi_pm.c
index d581613d87c7..ee44fded8e55 100644
--- a/drivers/scsi/scsi_pm.c
+++ b/drivers/scsi/scsi_pm.c
@@ -218,7 +218,7 @@ int scsi_autopm_get_device(struct scsi_device *sdev)
int err;
err = pm_runtime_get_sync(&sdev->sdev_gendev);
- if (err < 0 && err !=-EACCES)
+ if (err < 0 && err != -EACCES)
pm_runtime_put_sync(&sdev->sdev_gendev);
else
err = 0;
@@ -247,7 +247,7 @@ int scsi_autopm_get_host(struct Scsi_Host *shost)
int err;
err = pm_runtime_get_sync(&shost->shost_gendev);
- if (err < 0 && err !=-EACCES)
+ if (err < 0 && err != -EACCES)
pm_runtime_put_sync(&shost->shost_gendev);
else
err = 0;
--
2.17.1
reply other threads:[~2023-09-27 10:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=7612214f.888.18ad5bd14bc.Coremail.chenguohua@jari.cn \
--to=chenguohua@jari.cn \
--cc=gotom@debian.or.jp \
--cc=jejb@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=yokota@netlab.is.tsukuba.ac.jp \
/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®