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

[xen master] xen/evtchn: address a violation of MISRA C:2012 Rule 16.3



commit cde0c58714332f3775105f2c6cfd010a7c919837
Author:     Federico Serafini <federico.serafini@xxxxxxxxxxx>
AuthorDate: Wed Apr 3 09:38:22 2024 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Wed Apr 3 09:38:22 2024 +0200

    xen/evtchn: address a violation of MISRA C:2012 Rule 16.3
    
    Add break statement to address a violation of MISRA C:2012 Rule 16.3
    ("An unconditional `break' statement shall terminate every
    switch-clause ").
    
    No functional change.
    
    Signed-off-by: Federico Serafini <federico.serafini@xxxxxxxxxxx>
    Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
---
 xen/common/event_channel.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c
index 20f586cf5e..aceee0695f 100644
--- a/xen/common/event_channel.c
+++ b/xen/common/event_channel.c
@@ -853,6 +853,7 @@ int evtchn_send(struct domain *ld, unsigned int lport)
         break;
     default:
         ret = -EINVAL;
+        break;
     }
 
 out:
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

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