projects
/
users
/
dwmw2
/
linux.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72dafb5
)
x86/sev: Simplify the code by removing unnecessary 'else' statement
author
Peng Hao <flyingpeng@tencent.com>
Fri, 14 Mar 2025 12:19:53 +0000
(20:19 +0800)
committer
Ingo Molnar <mingo@kernel.org>
Mon, 17 Mar 2025 08:02:45 +0000
(09:02 +0100)
No need for an 'else' statement after a 'return'.
[ mingo: Clarified the changelog ]
Signed-off-by: Peng Hao <flyingpeng@tencent.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org
arch/x86/coco/sev/core.c
patch
|
blob
|
history
diff --git
a/arch/x86/coco/sev/core.c
b/arch/x86/coco/sev/core.c
index 82492efc5d9499d16495c536f4eb61f747561b4d..4e8b8002d48b14c1d967f4d415ff62f40dde81ac 100644
(file)
--- a/
arch/x86/coco/sev/core.c
+++ b/
arch/x86/coco/sev/core.c
@@
-1482,8
+1482,7
@@
static enum es_result vc_handle_msr(struct ghcb *ghcb, struct es_em_ctxt *ctxt)
case MSR_AMD64_GUEST_TSC_FREQ:
if (sev_status & MSR_AMD64_SNP_SECURE_TSC)
return __vc_handle_secure_tsc_msrs(regs, write);
- else
- break;
+ break;
default:
break;
}