]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commitdiff
xen/arm: smmu-v3: address violations of MISRA C:2012 Rule 16.3
authorFederico Serafini <federico.serafini@bugseng.com>
Wed, 20 Dec 2023 11:03:07 +0000 (12:03 +0100)
committerStefano Stabellini <stefano.stabellini@amd.com>
Fri, 5 Jan 2024 22:38:23 +0000 (14:38 -0800)
Add a break statement at the end of the switch-clauses to address
violations of MISRA C:2012 Rule 16.3 ("An unconditional `break'
statement shall terminate every switch-clause").
No funtional change.

Signed-off-by: Federico Serafini <federico.serafini@bugseng.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com
xen/drivers/passthrough/arm/smmu-v3.c

index cdbb505134b7daa557ff5688b724e77d95f21d59..bca5866b357925843bd63240b23d5c47fbb69282 100644 (file)
@@ -2200,6 +2200,7 @@ static int arm_smmu_device_hw_probe(struct arm_smmu_device *smmu)
                fallthrough;
        case IDR0_STALL_MODEL_STALL:
                smmu->features |= ARM_SMMU_FEAT_STALLS;
+               break;
        }
 
        if (reg & IDR0_S2P)
@@ -2301,6 +2302,7 @@ static int arm_smmu_device_hw_probe(struct arm_smmu_device *smmu)
                fallthrough;
        case IDR5_OAS_48_BIT:
                smmu->oas = 48;
+               break;
        }
 
        smmu->oas = min_t(unsigned long, PADDR_BITS, smmu->oas);