linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi: aic7xxx: aic79xx: Remove unnecessary parentheses
       [not found] <20230720090839.3506-1-xujianghui@cdjrlc.com>
@ 2023-07-20  9:09 ` sunran001
  0 siblings, 0 replies; only message in thread
From: sunran001 @ 2023-07-20  9:09 UTC (permalink / raw)
  To: hare, jejb, martin.petersen; +Cc: linux-scsi, linux-kernel

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(-)

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;
  	}

  	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;
  	}
  }

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-20  9:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20230720090839.3506-1-xujianghui@cdjrlc.com>
2023-07-20  9:09 ` [PATCH] scsi: aic7xxx: aic79xx: Remove unnecessary parentheses sunran001

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).