Skip to contentSkip to conversation

reset: Remove unnecessary '0' values from ret

PATCH New Li zeming 1 participant 1 message Sep 13, 2022 Reset controller framework

lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 reset: Remove unnecessary '0' values from ret

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

---
 include/linux/reset/bcm63xx_pmb.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/reset/bcm63xx_pmb.h +2 -2
index c77b6999518a..a6cc6df952f6 100644
@@ -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);
Signature · 1 line
2.18.2