]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xen/arm: smmu.c: Remove unused-but-set variable
authorMichal Orzel <michal.orzel@arm.com>
Wed, 27 Apr 2022 09:49:37 +0000 (11:49 +0200)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Wed, 27 Apr 2022 22:21:04 +0000 (15:21 -0700)
Function arm_smmu_init_context_bank defines and sets a variable
gr0_base but does not make use of it. Remove this variable.

Signed-off-by: Michal Orzel <michal.orzel@arm.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/drivers/passthrough/arm/smmu.c

index 5cacb2dd99a58342f4f77f21c0b3ab2d9981596f..c21c4f3ac02c6ffe3db4027c06231174d2fad2b3 100644 (file)
@@ -1086,10 +1086,9 @@ static void arm_smmu_init_context_bank(struct arm_smmu_domain *smmu_domain)
        bool stage1;
        struct arm_smmu_cfg *cfg = &smmu_domain->cfg;
        struct arm_smmu_device *smmu = smmu_domain->smmu;
-       void __iomem *cb_base, *gr0_base, *gr1_base;
+       void __iomem *cb_base, *gr1_base;
        paddr_t p2maddr;
 
-       gr0_base = ARM_SMMU_GR0(smmu);
        gr1_base = ARM_SMMU_GR1(smmu);
        stage1 = cfg->cbar != CBAR_TYPE_S2_TRANS;
        cb_base = ARM_SMMU_CB_BASE(smmu) + ARM_SMMU_CB(smmu, cfg->cbndx);