Commit ad06bcfd authored by Zhen Lei's avatar Zhen Lei Committed by Michael Ellerman
Browse files

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: default avatarZhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210510131924.3907-1-thunder.leizhen@huawei.com
parent c6745461
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;