arm64: proton-pack: Remove redundant fallthrough statements
PATCH 1/1 arm64: proton-pack: Remove redundant fallthrough statements
Consecutive switch labels do not need fallthrough statements. Remove the redundant statements.
Signed-off-by Thorsten Blum <[email protected]>
--- arch/arm64/kernel/proton-pack.c | 7 ------- 1 file changed, 7 deletions(-)
arch/arm64/kernel/proton-pack.c +0 -7
@@ -141,7 +141,6 @@ ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr,return sysfs_emit (buf,"Mitigation: %s%s\n" , v2_str, bhb_str);case SPECTRE_VULNERABLE : - fallthrough;default :return sysfs_emit (buf,"Vulnerable\n" ); }
@@ -187,7 +186,6 @@ static enum mitigation_state spectre_v2_get_cpu_fw_mitigation_state(void)case SMCCC_ARCH_WORKAROUND_RET_UNAFFECTED :return SPECTRE_UNAFFECTED ;default : - fallthrough;case SMCCC_RET_NOT_SUPPORTED :return SPECTRE_VULNERABLE ; }
@@ -436,7 +434,6 @@ ssize_t cpu_show_spec_store_bypass(struct device *dev,case SPECTRE_MITIGATED :return sysfs_emit (buf,"Mitigation: Speculative Store Bypass disabled via prctl\n" );case SPECTRE_VULNERABLE : - fallthrough;default :return sysfs_emit (buf,"Vulnerable\n" ); }
@@ -480,11 +477,9 @@ static enum mitigation_state spectre_v4_get_cpu_fw_mitigation_state(void)case SMCCC_RET_SUCCESS :return SPECTRE_MITIGATED ;case SMCCC_ARCH_WORKAROUND_RET_UNAFFECTED : - fallthrough;case SMCCC_RET_NOT_REQUIRED :return SPECTRE_UNAFFECTED ;default : - fallthrough;case SMCCC_RET_NOT_SUPPORTED :return SPECTRE_VULNERABLE ; }
@@ -768,7 +763,6 @@ static int ssbd_prctl_get(struct task_struct *task)/* Mitigations are disabled, so we're vulnerable. */ fallthrough;case SPECTRE_VULNERABLE : - fallthrough;default :return PR_SPEC_ENABLE ; }
@@ -930,7 +924,6 @@ static enum mitigation_state spectre_bhb_get_cpu_fw_mitigation_state(void)case SMCCC_ARCH_WORKAROUND_RET_UNAFFECTED :return SPECTRE_UNAFFECTED ;default : - fallthrough;case SMCCC_RET_NOT_SUPPORTED :return SPECTRE_VULNERABLE ; }