stm32mp1: rng: remove superfluous assignment
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 16 Feb 2020 09:11:18 +0000 (10:11 +0100)
committerPatrick 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

index dab3b995eb6bc07393cbbc1f995dec8706dfcef8..e0f0a66c6e7319b40f858cfc135ab0d43ccd2f25 100644 (file)
@@ -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);