From: Weiwei Li Date: Mon, 27 Mar 2023 08:08:55 +0000 (+0800) Subject: target/riscv: Remove redundant parentheses X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=628f0ec1ed631594395bda5e79aaf3e4bd641b6e;p=qemu.git target/riscv: Remove redundant parentheses Remove redundant parentheses in get_physical_address. Signed-off-by: Weiwei Li Signed-off-by: Junqiang Wang Reviewed-by: Richard Henderson Reviewed-by: LIU Zhiwei Reviewed-by: Alistair Francis Message-Id: <20230327080858.39703-8-liweiwei@iscas.ac.cn> Signed-off-by: Alistair Francis --- diff --git a/target/riscv/cpu_helper.c b/target/riscv/cpu_helper.c index c7bc3fc553..9e2be29c45 100644 --- a/target/riscv/cpu_helper.c +++ b/target/riscv/cpu_helper.c @@ -1051,7 +1051,7 @@ restart: if ((pte & PTE_R) || ((pte & PTE_X) && mxr)) { *prot |= PAGE_READ; } - if ((pte & PTE_X)) { + if (pte & PTE_X) { *prot |= PAGE_EXEC; } /* add write permission on stores or if the page is already dirty,