lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <5663619f5f713c1ad99efbb8fa53bbb1@208suo.com>
Date:   Thu, 20 Jul 2023 17:09:51 +0800
From:   sunran001@...suo.com
To:     hare@...e.com, jejb@...ux.ibm.com, martin.petersen@...cle.com
Cc:     linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] scsi: aic7xxx: aic79xx: Remove unnecessary parentheses

Fix "return is not a function, parentheses are not required" checkpatch
error.

Signed-off-by: Ran Sun <sunran001@...suo.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;
  	}
  }

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ