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: <20220913035950.258430-1-zeming@nfschina.com>
Date:   Tue, 13 Sep 2022 11:59:50 +0800
From:   Li zeming <zeming@...china.com>
To:     p.zabel@...gutronix.de
Cc:     linux-kernel@...r.kernel.org, Li zeming <zeming@...china.com>
Subject: [PATCH] reset: Remove unnecessary '0' values from ret

The ret variable is assigned first, it does not need to be initialized.

Signed-off-by: Li zeming <zeming@...china.com>
---
 include/linux/reset/bcm63xx_pmb.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/reset/bcm63xx_pmb.h b/include/linux/reset/bcm63xx_pmb.h
index c77b6999518a..a6cc6df952f6 100644
--- a/include/linux/reset/bcm63xx_pmb.h
+++ b/include/linux/reset/bcm63xx_pmb.h
@@ -58,7 +58,7 @@ static inline int __bpcm_do_op(void __iomem *master, unsigned int addr,
 static inline int bpcm_rd(void __iomem *master, unsigned int addr,
 			  u32 off, u32 *val)
 {
-	int ret = 0;
+	int ret;
 
 	ret = __bpcm_do_op(master, addr, off >> 2, PMC_PMBM_READ);
 	*val = readl(master + PMB_RD_DATA);
@@ -69,7 +69,7 @@ static inline int bpcm_rd(void __iomem *master, unsigned int addr,
 static inline int bpcm_wr(void __iomem *master, unsigned int addr,
 			  u32 off, u32 val)
 {
-	int ret = 0;
+	int ret;
 
 	writel(val, master + PMB_WR_DATA);
 	ret = __bpcm_do_op(master, addr, off >> 2, PMC_PMBM_WRITE);
-- 
2.18.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ