[PATCH] x86/mm: Consolidate SME comments and use break
From: Thorsten Blum
Date: Tue Jun 09 2026 - 07:34:12 EST
Combine the two SME comments and use break instead of return to exit the
switch consistently with the other cases.
Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
---
arch/x86/mm/mem_encrypt.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/arch/x86/mm/mem_encrypt.c b/arch/x86/mm/mem_encrypt.c
index 95bae74fdab2..c6bab01a5db8 100644
--- a/arch/x86/mm/mem_encrypt.c
+++ b/arch/x86/mm/mem_encrypt.c
@@ -53,14 +53,13 @@ static void print_mem_encrypt_feature_info(void)
case CC_VENDOR_AMD:
pr_cont("AMD");
- /* Secure Memory Encryption */
- if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) {
/*
- * SME is mutually exclusive with any of the SEV
- * features below.
- */
+ * Secure Memory Encryption is mutually exclusive with
+ * any of the SEV features below.
+ */
+ if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) {
pr_cont(" SME\n");
- return;
+ break;
}
/* Secure Encrypted Virtualization */