mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 16:40:44 +09:00
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@gmx.de> Reviewed-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Pragnesh Patel <pragnesh.patel@sifive.com> Tested-by: Pragnesh Patel <pragnesh.patel@sifive.com> Reviewed-by: Rick Chen <rick@andestech.com>
This commit is contained in:
parent
023dba1366
commit
6a43e3a167
@ -22,7 +22,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
||||
int cache_enable_ways(void)
|
||||
{
|
||||
const void *blob = gd->fdt_blob;
|
||||
int node = (-FDT_ERR_NOTFOUND);
|
||||
int node;
|
||||
fdt_addr_t base;
|
||||
u32 config;
|
||||
u32 ways;
|
||||
|
Loading…
Reference in New Issue
Block a user