]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: remove redundant logical constraint.
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 3 Aug 2020 21:33:42 +0000 (23:33 +0200)
committerAndes <uboot@andestech.com>
Fri, 14 Aug 2020 06:39:09 +0000 (14:39 +0800)
commit023dba13668756e54ac4522543d91840f8f34db5
tree3bcb6f029a1ce83d83037b9b56ccb3c62ef3bd37
parent3581811dc26fdf9eef05a7de9f654dc6a7a2596a
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>
arch/riscv/lib/andes_plic.c