From: Heinrich Schuchardt Date: Sun, 16 Feb 2020 09:11:18 +0000 (+0100) Subject: stm32mp1: rng: remove superfluous assignment X-Git-Tag: v2020.04-rc4~27^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=250b303de8c714b5b31d2fe7f25b7527e800c574;p=oweals%2Fu-boot.git stm32mp1: rng: remove superfluous assignment We should not assign a value that is overwritten before use. Signed-off-by: Heinrich Schuchardt Acked-by: Sughosh Ganu Reviewed-by: Patrick Delaunay --- 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);