Skip to contentSkip to conversation

aic7xxx: Clean up errors in aiclib.h

PATCH New [email protected] 1 participant 1 message Sep 27, 2023

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

PATCH 1/1 aic7xxx: Clean up errors in aiclib.h

Fix the following errors reported by checkpatch:

ERROR: open brace '{' following struct go on the same line
ERROR: return is not a function, parentheses are not required
ERROR: space required after that ',' (ctx:VxV)

---
 drivers/scsi/aic7xxx/aiclib.h | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
drivers/scsi/aic7xxx/aiclib.h +4 -6
index ba08eb3c4e3b..a7d0a2d912cd 100644
@@ -57,8 +57,7 @@
 #ifndef	_AICLIB_H
 #define _AICLIB_H
 
-struct scsi_sense
-{
+struct scsi_sense {
 	uint8_t opcode;
 	uint8_t byte2;
 	uint8_t unused[2];
@@ -72,8 +71,7 @@ struct scsi_sense
 #define		SCSI_REV_SPC		3
 #define		SCSI_REV_SPC2		4
 
-struct scsi_sense_data
-{
+struct scsi_sense_data {
 	uint8_t error_code;
 #define	SSD_ERRCODE			0x7F
 #define		SSD_CURRENT_ERROR	0x70
@@ -135,7 +133,7 @@ scsi_4btoul(uint8_t *bytes)
 	     (bytes[1] << 16) |
 	     (bytes[2] << 8) |
 	     bytes[3];
-	return (rv);
+	return rv;
 }
 
 /* Macros for generating the elements of the PCI ID tables. */
@@ -144,7 +142,7 @@ scsi_4btoul(uint8_t *bytes)
 
 #define ID_C(x, c)						\
 {								\
-	GETID(x,32), GETID(x,48), GETID(x,0), GETID(x,16),	\
+	GETID(x, 32), GETID(x, 48), GETID(x, 0), GETID(x, 16),	\
 	(c) << 8, 0xFFFF00, 0					\
 }
 
Signature · 1 line
2.17.1