diff mbox series

[XEN,11/13] x86/pmtimer: address a violation of MISRA C Rule 16.3

Message ID 3cdd3de1e1d91fb9fbef173f3f1a3470e7dadbca.1718890095.git.federico.serafini@bugseng.com (mailing list archive)
State New, archived
Headers show
Series [XEN,01/13] automation/eclair: consider also hypened fall-through | expand

Commit Message

Federico Serafini June 20, 2024, 1:51 p.m. UTC
Add missing break statement to address a violation of MISRA C 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/hvm/pmtimer.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/xen/arch/x86/hvm/pmtimer.c b/xen/arch/x86/hvm/pmtimer.c
index 97099ac305..87a7a01c9f 100644
--- a/xen/arch/x86/hvm/pmtimer.c
+++ b/xen/arch/x86/hvm/pmtimer.c
@@ -185,6 +185,7 @@  static int cf_check handle_evt_io(
                 gdprintk(XENLOG_WARNING, 
                          "Bad ACPI PM register write: %x bytes (%x) at %x\n", 
                          bytes, *val, port);
+                break;
             }
         }
         /* Fix up the SCI state to match the new register state */