From patchwork Sun Feb 16 09:11:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 236399 List-Id: U-Boot discussion From: xypron.glpk at gmx.de (Heinrich Schuchardt) Date: Sun, 16 Feb 2020 10:11:18 +0100 Subject: [PATCH 1/1] stm32mp1: rng: remove superfluous assignment Message-ID: <20200216091118.3838-1-xypron.glpk@gmx.de> We should not assign a value that is overwritten before use. Signed-off-by: Heinrich Schuchardt Acked-by: Sughosh Ganu Reviewed-by: Patrick Delaunay --- drivers/rng/stm32mp1_rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.0 diff --git a/drivers/rng/stm32mp1_rng.c b/drivers/rng/stm32mp1_rng.c index dab3b995eb..e0f0a66c6e 100644 --- a/drivers/rng/stm32mp1_rng.c +++ b/drivers/rng/stm32mp1_rng.c @@ -33,7 +33,7 @@ struct stm32_rng_platdata { static int stm32_rng_read(struct udevice *dev, void *data, size_t len) { - int retval = 0, i; + int retval, i; u32 sr, count, reg; size_t increment; struct stm32_rng_platdata *pdata = dev_get_platdata(dev);