Skip to contentSkip to conversation

powerpc/pseries/ras: Delete a redundant condition branch

PATCH Applied Zhen Lei 2 participants 2 messages May 10, 2021 – Jun 6, 2021 PowerPC

lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

PATCH 1/1 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.

---
 arch/powerpc/platforms/pseries/ras.c | 2 --
 1 file changed, 2 deletions(-)
arch/powerpc/platforms/pseries/ras.c +0 -2
index 9d4ef65da7f395f..2f636308cf60430 100644
@@ -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;
 
Signature · 1 line
2.26.0.106.g9fadedd