diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-08-03 23:33:42 +0200 |
---|---|---|
committer | Andes <uboot@andestech.com> | 2020-08-14 14:39:09 +0800 |
commit | 023dba13668756e54ac4522543d91840f8f34db5 (patch) | |
tree | 3bcb6f029a1ce83d83037b9b56ccb3c62ef3bd37 /arch | |
parent | 3581811dc26fdf9eef05a7de9f654dc6a7a2596a (diff) | |
download | u-boot-023dba13668756e54ac4522543d91840f8f34db5.tar.gz u-boot-023dba13668756e54ac4522543d91840f8f34db5.tar.bz2 u-boot-023dba13668756e54ac4522543d91840f8f34db5.zip |
riscv: remove redundant logical constraint.
After
if (ret) return ret;
we know that ret is zero. Don't check it again.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Rick Chen <rick@andestech.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/riscv/lib/andes_plic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/lib/andes_plic.c b/arch/riscv/lib/andes_plic.c index 5cf29df670..c2a8fe4d9e 100644 --- a/arch/riscv/lib/andes_plic.c +++ b/arch/riscv/lib/andes_plic.c @@ -52,7 +52,7 @@ static int init_plic(void) if (ret) return ret; - if (ret == 0 && dev) { + if (dev) { ofnode_for_each_subnode(node, dev_ofnode(dev->parent)) { const char *device_type; |