]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
XXX: DO NOT COMMIT smmu-generic
authorStefano Stabellini <stefano.stabellini@xilinx.com>
Tue, 6 Apr 2021 23:43:50 +0000 (16:43 -0700)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Tue, 6 Apr 2021 23:58:16 +0000 (16:58 -0700)
xen/drivers/passthrough/arm/smmu.c

index 7be6c7e187eb1c2236969408b9acbd4394da5e74..6c5d0160b8a4708b86279d1461f3dd585b68d5dd 100644 (file)
@@ -1566,10 +1566,6 @@ static int arm_smmu_master_alloc_smes(struct device *dev)
        spin_lock(&smmu->stream_map_lock);
        /* Figure out a viable stream map entry allocation */
        for_each_cfg_sme(cfg, i, idx, fwspec->num_ids) {
-               if (idx != INVALID_SMENDX) {
-                       ret = -EEXIST;
-                       goto out_err;
-               }
 
                ret = arm_smmu_find_sme(smmu, fwspec->ids[i], 0);
                if (ret < 0)