From: Federico Serafini Date: Wed, 3 Apr 2024 07:37:26 +0000 (+0200) Subject: xen/domctl: address a violation of MISRA C:2012 Rule 16.3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2c205ce5c09bd506937e99de0bc33b06ce3e6911;p=people%2Faperard%2Fxen-unstable.git xen/domctl: 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 Reviewed-by: Jan Beulich --- 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);