[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging] x86/crash: address Misra 2.1 rule violation



commit f55c3a9c02ac133ee140e3177cb48f7785a1a66e
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Tue Oct 6 08:12:23 2026 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Oct 6 08:12:23 2026 +0200

    x86/crash: address Misra 2.1 rule violation
    
    The use of unreachable(), when unreachability is visible to Eclair (and
    compilers), is deemed a violation. Drop the redundant statement.
    
    No functional change.
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 xen/arch/x86/crash.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/xen/arch/x86/crash.c b/xen/arch/x86/crash.c
index 04fd04393b..89306984e1 100644
--- a/xen/arch/x86/crash.c
+++ b/xen/arch/x86/crash.c
@@ -118,8 +118,6 @@ static int cf_check do_nmi_crash(
 
     for ( ; ; )
         halt();
-
-    unreachable();
 }
 
 static void nmi_shootdown_cpus(void)
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.