reset: Remove unnecessary '0' values from ret
PATCH 1/1 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 <[email protected]>
--- include/linux/reset/bcm63xx_pmb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/reset/bcm63xx_pmb.h +2 -2
@@ -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