diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-08-04 00:33:42 +0300 |
---|---|---|
committer | Andes <uboot@andestech.com> | 2020-08-14 09:39:09 +0300 |
commit | 023dba13668756e54ac4522543d91840f8f34db5 (patch) | |
tree | 3bcb6f029a1ce83d83037b9b56ccb3c62ef3bd37 /arch | |
parent | 3581811dc26fdf9eef05a7de9f654dc6a7a2596a (diff) | |
download | u-boot-023dba13668756e54ac4522543d91840f8f34db5.tar.xz |
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; |