Message ID | c730993f757afcaeb327e7fb8528b70b716cd5db.1712042178.git.federico.serafini@bugseng.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | xen: address violations of MISRA C:2012 Rule 16.3 | expand |
On 02.04.2024 09:22, Federico Serafini wrote: > 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@bugseng.com> Reviewed-by: Jan Beulich <jbeulich@suse.com>
diff --git a/xen/common/domctl.c b/xen/common/domctl.c index d94a9dae91..f2e0e36a17 100644 --- a/xen/common/domctl.c +++ b/xen/common/domctl.c @@ -316,6 +316,7 @@ long do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl) d = rcu_lock_domain_by_id(op->domain); if ( !d ) return -ESRCH; + break; } ret = xsm_domctl(XSM_OTHER, d, op->cmd);
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@bugseng.com> --- xen/common/domctl.c | 1 + 1 file changed, 1 insertion(+)