diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2021-05-10 21:19:24 +0800 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-05-23 20:51:34 +1000 |
commit | ad06bcfd5b8f989690053e6026cf742886ba9f90 (patch) | |
tree | b7d5db3eb62bcbffddeb2d38fea5c97ca6b9c7ee /arch/powerpc/platforms/pseries/ras.c | |
parent | c67454615cf95160cb806f7a471158a901eb261d (diff) | |
download | linux-stable-ad06bcfd5b8f989690053e6026cf742886ba9f90.tar.gz linux-stable-ad06bcfd5b8f989690053e6026cf742886ba9f90.tar.bz2 linux-stable-ad06bcfd5b8f989690053e6026cf742886ba9f90.zip |
powerpc/pseries/ras: Delete a redundant condition branch
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>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210510131924.3907-1-thunder.leizhen@huawei.com
Diffstat (limited to 'arch/powerpc/platforms/pseries/ras.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/ras.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/pseries/ras.c b/arch/powerpc/platforms/pseries/ras.c index 9d4ef65da7f3..2f636308cf60 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; |