]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xen/arm: mmu: address a violations of MISRA C:2012 Rule 16.3
authorFederico Serafini <federico.serafini@bugseng.com>
Wed, 20 Dec 2023 11:03:06 +0000 (12:03 +0100)
committerStefano Stabellini <stefano.stabellini@amd.com>
Wed, 20 Dec 2023 18:20:16 +0000 (10:20 -0800)
Add missing break at the end of the switch-clause 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>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/mmu/p2m.c

index 6a5a08030790429d37ba823410abccff010fa2c4..41fcca011cf4cb3a0c95643b9eb0e310bfca3304 100644 (file)
@@ -657,6 +657,7 @@ static lpae_t mfn_to_p2m_entry(mfn_t mfn, p2m_type_t t, p2m_access_t a)
     default:
         e.p2m.mattr = MATTR_MEM;
         e.p2m.sh = LPAE_SH_INNER;
+        break;
     }
 
     p2m_set_permission(&e, t, a);