powerpc/pseries/ras: Delete a redundant condition branch
authorZhen Lei <thunder.leizhen@huawei.com>
Mon, 10 May 2021 13:19:24 +0000 (21:19 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 23 May 2021 10:51:34 +0000 (20:51 +1000)
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
arch/powerpc/platforms/pseries/ras.c

index 9d4ef65da7f395f6aab3e7a9e544f27c2117f0e5..2f636308cf6043035c35802f75c8db5d5c2385fb 100644 (file)
@@ -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;