* [PATCH 1/1] powerpc/pseries/ras: Delete a redundant condition branch
@ 2021-05-10 13:19 Zhen Lei
2021-06-06 12:08 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Zhen Lei @ 2021-05-10 13:19 UTC (permalink / raw)
To: Michael Ellerman, Benjamin Herrenschmidt, Paul Mackerras, linuxppc-dev
Cc: Zhen Lei
The statement of the last "if (xxx)" branch is the same as the "else"
branch. Delete it to simplify code.
No functional change.
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
arch/powerpc/platforms/pseries/ras.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/powerpc/platforms/pseries/ras.c b/arch/powerpc/platforms/pseries/ras.c
index 9d4ef65da7f395f..2f636308cf60430 100644
--- a/arch/powerpc/platforms/pseries/ras.c
+++ b/arch/powerpc/platforms/pseries/ras.c
@@ -593,8 +593,6 @@ static int mce_handle_err_virtmode(struct pt_regs *regs,
mce_err.severity = MCE_SEV_SEVERE;
else if (severity == RTAS_SEVERITY_ERROR)
mce_err.severity = MCE_SEV_SEVERE;
- else if (severity == RTAS_SEVERITY_FATAL)
- mce_err.severity = MCE_SEV_FATAL;
else
mce_err.severity = MCE_SEV_FATAL;
--
2.26.0.106.g9fadedd
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] powerpc/pseries/ras: Delete a redundant condition branch
2021-05-10 13:19 [PATCH 1/1] powerpc/pseries/ras: Delete a redundant condition branch Zhen Lei
@ 2021-06-06 12:08 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2021-06-06 12:08 UTC (permalink / raw)
To: Benjamin Herrenschmidt, linuxppc-dev, Michael Ellerman,
Paul Mackerras, Zhen Lei
On Mon, 10 May 2021 21:19:24 +0800, Zhen Lei wrote:
> The statement of the last "if (xxx)" branch is the same as the "else"
> branch. Delete it to simplify code.
>
> No functional change.
Applied to powerpc/next.
[1/1] powerpc/pseries/ras: Delete a redundant condition branch
https://git.kernel.org/powerpc/c/ad06bcfd5b8f989690053e6026cf742886ba9f90
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-06 12:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10 13:19 [PATCH 1/1] powerpc/pseries/ras: Delete a redundant condition branch Zhen Lei
2021-06-06 12:08 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).