* [PATCH] reset: Remove unnecessary '0' values from ret
@ 2022-09-13 3:59 Li zeming
0 siblings, 0 replies; only message in thread
From: Li zeming @ 2022-09-13 3:59 UTC (permalink / raw)
To: p.zabel; +Cc: linux-kernel, Li zeming
The ret variable is assigned first, it does not need to be initialized.
Signed-off-by: Li zeming <zeming@nfschina.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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-13 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-13 3:59 [PATCH] reset: Remove unnecessary '0' values from ret Li zeming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).