From: Stefano Stabellini Date: Tue, 6 Apr 2021 23:43:50 +0000 (-0700) Subject: XXX: DO NOT COMMIT X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=refs%2Fheads%2Fsmmu-generic;p=people%2Fsstabellini%2Fxen-unstable.git%2F.git XXX: DO NOT COMMIT --- diff --git a/xen/drivers/passthrough/arm/smmu.c b/xen/drivers/passthrough/arm/smmu.c index 7be6c7e187..6c5d0160b8 100644 --- a/xen/drivers/passthrough/arm/smmu.c +++ b/xen/drivers/passthrough/arm/smmu.c @@ -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)