diff mbox series

scsi: aic7xxx: aic79xx: Remove unnecessary parentheses

Message ID 5663619f5f713c1ad99efbb8fa53bbb1@208suo.com
State New
Headers show
Series scsi: aic7xxx: aic79xx: Remove unnecessary parentheses | expand

Commit Message

sunran001@208suo.com July 20, 2023, 9:09 a.m. UTC
Fix "return is not a function, parentheses are not required" checkpatch
error.

Signed-off-by: Ran Sun <sunran001@208suo.com>
---
  drivers/scsi/aic7xxx/aic7xxx_93cx6.c | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)

  	send_seeprom_cmd(sd, ewen);
@@ -292,7 +292,7 @@ ahc_write_seeprom(struct seeprom_descriptor *sd, 
uint16_t *buf,
  	send_seeprom_cmd(sd, ewds);
  	reset_seeprom(sd);

-	return (1);
+	return 1;
  }

  int
@@ -311,8 +311,8 @@ ahc_verify_cksum(struct seeprom_config *sc)
  		checksum = checksum + scarray[i];
  	if (checksum == 0
  	 || (checksum & 0xFFFF) != sc->checksum) {
-		return (0);
+		return 0;
  	} else {
-		return(1);
+		return 1;
  	}
  }
diff mbox series

Patch

diff --git a/drivers/scsi/aic7xxx/aic7xxx_93cx6.c 
b/drivers/scsi/aic7xxx/aic7xxx_93cx6.c
index 11ddffbcc2f3..0d3c33322eb5 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_93cx6.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_93cx6.c
@@ -236,7 +236,7 @@  ahc_write_seeprom(struct seeprom_descriptor *sd, 
uint16_t *buf,
  	} else {
  		printk("ahc_write_seeprom: unsupported seeprom type %d\n",
  		       sd->sd_chip);
-		return (0);
+		return 0;
  	}