The ret variable is assigned first, it does not need to be initialized.
Signed-off-by: Li zeming <[email protected]>
---
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