diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-02-16 12:11:18 +0300 |
---|---|---|
committer | Patrick Delaunay <patrick.delaunay@st.com> | 2020-03-02 11:41:31 +0300 |
commit | 250b303de8c714b5b31d2fe7f25b7527e800c574 (patch) | |
tree | 387c9bf7eab94d91c128f195bad0ec91dc9a133c | |
parent | 9e1d65f36b83c5422ece3c0ea28d07a2246cb07f (diff) | |
download | u-boot-250b303de8c714b5b31d2fe7f25b7527e800c574.tar.xz |
stm32mp1: rng: remove superfluous assignment
We should not assign a value that is overwritten before use.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
-rw-r--r-- | drivers/rng/stm32mp1_rng.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |