diff mbox series

scsi: lpfc: Clean up errors in lpfc_compat.h

Message ID 3a564508.897.18ad97860cb.Coremail.wangkailong@jari.cn
State New
Headers show
Series scsi: lpfc: Clean up errors in lpfc_compat.h | expand

Commit Message

KaiLong Wang Sept. 28, 2023, 1:47 a.m. UTC
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@jari.cn>
---
 drivers/scsi/lpfc/lpfc_compat.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
diff mbox series

Patch

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 */