[PATCH] scsi: lpfc: Clean up errors in lpfc_compat.h

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

 



Fix the following errors reported by checkpatch:

ERROR: need consistent spacing around '/' (ctx:WxV)
ERROR: space prohibited after that open parenthesis '('

Signed-off-by: GuoHua Cheng <chenguohua@xxxxxxx>
---
 drivers/scsi/lpfc/lpfc_compat.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/scsi/lpfc/lpfc_compat.h b/drivers/scsi/lpfc/lpfc_compat.h
index 43cf46a3a71f..4c4f6ba4f813 100644
--- a/drivers/scsi/lpfc/lpfc_compat.h
+++ b/drivers/scsi/lpfc/lpfc_compat.h
@@ -48,8 +48,8 @@ lpfc_memcpy_to_slim(void __iomem *dest, void *src, unsigned int bytes)
 	src32  = (uint32_t *) src;
 
 	/* write input bytes, 4 bytes at a time */
-	for (four_bytes = bytes /4; four_bytes > 0; four_bytes--) {
-		writel( *src32, dest32);
+	for (four_bytes = bytes / 4; four_bytes > 0; four_bytes--) {
+		writel(*src32, dest32);
 		readl(dest32); /* flush */
 		dest32++;
 		src32++;
@@ -59,7 +59,7 @@ lpfc_memcpy_to_slim(void __iomem *dest, void *src, unsigned int bytes)
 }
 
 static inline void
-lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes)
+lpfc_memcpy_from_slim(void *dest, void __iomem *src, unsigned int bytes)
 {
 	uint32_t *dest32;
 	uint32_t __iomem *src32;
@@ -70,8 +70,8 @@ lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes)
 	src32  = (uint32_t __iomem *) src;
 
 	/* read input bytes, 4 bytes at a time */
-	for (four_bytes = bytes /4; four_bytes > 0; four_bytes--) {
-		*dest32 = readl( src32);
+	for (four_bytes = bytes / 4; four_bytes > 0; four_bytes--) {
+		*dest32 = readl(src32);
 		dest32++;
 		src32++;
 	}
@@ -82,17 +82,17 @@ lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes)
 #else
 
 static inline void
-lpfc_memcpy_to_slim( void __iomem *dest, void *src, unsigned int bytes)
+lpfc_memcpy_to_slim(void __iomem *dest, void *src, unsigned int bytes)
 {
 	/* convert bytes in argument list to word count for copy function */
 	__iowrite32_copy(dest, src, bytes / sizeof(uint32_t));
 }
 
 static inline void
-lpfc_memcpy_from_slim( void *dest, void __iomem *src, unsigned int bytes)
+lpfc_memcpy_from_slim(void *dest, void __iomem *src, unsigned int bytes)
 {
 	/* actually returns 1 byte past dest */
-	memcpy_fromio( dest, src, bytes);
+	memcpy_fromio(dest, src, bytes);
 }
 
 #endif	/* __BIG_ENDIAN */
-- 
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