summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-08-03 23:33:42 +0200
committerAndes <uboot@andestech.com>2020-08-14 14:39:09 +0800
commit023dba13668756e54ac4522543d91840f8f34db5 (patch)
tree3bcb6f029a1ce83d83037b9b56ccb3c62ef3bd37 /arch
parent3581811dc26fdf9eef05a7de9f654dc6a7a2596a (diff)
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.c2
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;