Message ID | cf6d83d970a99f21b90073e3583c26418c8b3b9f.1725958416.git.federico.serafini@bugseng.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | x86: address violations of MISRA C Rule 16.3 | expand |
On 10.09.2024 12:08, Federico Serafini wrote: > Address violations 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> Acked-by: Jan Beulich <jbeulich@suse.com>
diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c index f37300946e..d79b0a6ab9 100644 --- a/xen/arch/x86/time.c +++ b/xen/arch/x86/time.c @@ -1477,6 +1477,7 @@ unsigned int rtc_guest_read(unsigned int port) default: ASSERT_UNREACHABLE(); + break; } return data; @@ -1529,6 +1530,7 @@ void rtc_guest_write(unsigned int port, unsigned int data) default: ASSERT_UNREACHABLE(); + break; } }
Address violations 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/arch/x86/time.c | 2 ++ 1 file changed, 2 insertions(+)