Skip to contentSkip to conversation

scsi: aacraid: Clean up errors in commsup.c

PATCH In review XueBing Chen 2 participants 2 messages Jan 11, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: aacraid: Clean up errors in commsup.c

Fix the following errors reported by checkpatch:

ERROR: spaces required around that '<' (ctx:VxV)
ERROR: "foo * bar" should be "foo *bar"

---
 drivers/scsi/aacraid/commsup.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/aacraid/commsup.c +2 -2
index 25cee03d7f97..865316ba3c19 100644
@@ -129,7 +129,7 @@ void aac_fib_vector_assign(struct aac_dev *dev)
  *	fib area, the unmapped fib data and also the free list
  */
 
-int aac_fib_setup(struct aac_dev * dev)
+int aac_fib_setup(struct aac_dev *dev)
 {
 	struct fib *fibptr;
 	struct hw_fib *hw_fib;
@@ -144,7 +144,7 @@ int aac_fib_setup(struct aac_dev * dev)
 		if (dev->comm_interface != AAC_COMM_MESSAGE_TYPE3)
 			dev->init->r7.max_io_commands = cpu_to_le32(max_cmds);
 	}
-	if (i<0)
+	if (i < 0)
 		return -ENOMEM;
 
 	memset(dev->hw_fib_va, 0,
Signature · 1 line
2.17.1
#1 lore raw
Quoted 24 lines · XueBing Chen

Fix the following errors reported by checkpatch:

ERROR: spaces required around that '<' (ctx:VxV)
ERROR: "foo * bar" should be "foo *bar"

---
  drivers/scsi/aacraid/commsup.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/aacraid/commsup.c +1 -1
index 25cee03d7f97..865316ba3c19 100644
@@ -129,7 +129,7 @@ void aac_fib_vector_assign(struct aac_dev *dev)
   *	fib area, the unmapped fib data and also the free list
   */
 
-int aac_fib_setup(struct aac_dev * dev)
+int aac_fib_setup(struct aac_dev *dev)
  {
  	struct fib *fibptr;
  	struct hw_fib *hw_fib;

drivers/scsi/aacraid/commsup.c int aac_fib_setup(struct aac_dev * dev) · line 150

Quoted 8 lines
drivers/scsi/aacraid/commsup.c +1 -1
@@ -144,7 +144,7 @@ int aac_fib_setup(struct aac_dev * dev)
  		if (dev->comm_interface != AAC_COMM_MESSAGE_TYPE3)
  			dev->init->r7.max_io_commands = cpu_to_le32(max_cmds);
  	}
-	if (i<0)
+	if (i < 0)
  		return -ENOMEM;
 
  	memset(dev->hw_fib_va, 0,

checkpatch is for checking patches before these are submitted and should not be run on code that has already been merged into the kernel tree.

Bart.