projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e1d65f
)
stm32mp1: rng: remove superfluous assignment
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 16 Feb 2020 09:11:18 +0000
(10:11 +0100)
committer
Patrick Delaunay
<patrick.delaunay@st.com>
Mon, 2 Mar 2020 08:41:31 +0000
(09:41 +0100)
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>
drivers/rng/stm32mp1_rng.c
patch
|
blob
|
history
diff --git
a/drivers/rng/stm32mp1_rng.c
b/drivers/rng/stm32mp1_rng.c
index dab3b995eb6bc07393cbbc1f995dec8706dfcef8..e0f0a66c6e7319b40f858cfc135ab0d43ccd2f25 100644
(file)
--- 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);