[PATCH] scsi: Clean up errors in nsp32_io.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
---
 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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux