[PATCH 1/1] riscv: sifive: fu540: redundant initialization

Rick Chen rickchen36 at gmail.com
Tue Aug 4 10:46:26 CEST 2020


> From: Heinrich Schuchardt [mailto:xypron.glpk at gmx.de]
> Sent: Tuesday, August 04, 2020 5:10 AM
> To: Rick Jian-Zhi Chen(陳建志)
> Cc: Pragnesh Patel; Bin Meng; u-boot at lists.denx.de; Heinrich Schuchardt
> Subject: [PATCH 1/1] riscv: sifive: fu540: redundant initialization
>
> We should not initialize a variable if the value is overwritten before being read.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  arch/riscv/cpu/fu540/cache.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Rick Chen <rick at andestech.com>


More information about the U-Boot mailing list