]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
xen/vpci: address violations of MISRA C Rule 16.3
authorFederico Serafini <federico.serafini@bugseng.com>
Tue, 15 Oct 2024 12:22:56 +0000 (14:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 15 Oct 2024 12:22:56 +0000 (14:22 +0200)
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: Roger Pau Monné <roger.pau@citrix.com>
xen/drivers/vpci/msix.c

index fbe710ab92ef9ac817947a229c4ffbfce71d7f75..5bb4444ce21f1c55f5b0da55ee9883032674c07b 100644 (file)
@@ -364,6 +364,7 @@ static int adjacent_read(const struct domain *d, const struct vpci_msix *msix,
 
     default:
         ASSERT_UNREACHABLE();
+        break;
     }
     spin_unlock(&vpci->lock);
 
@@ -512,6 +513,7 @@ static int adjacent_write(const struct domain *d, const struct vpci_msix *msix,
 
     default:
         ASSERT_UNREACHABLE();
+        break;
     }
     spin_unlock(&vpci->lock);