From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Deegan Subject: [PATCH 2/9] passthrough/amd: Drop unnecessary lock lookup. Date: Thu, 12 Sep 2013 13:15:23 +0100 Message-ID: <1378988130-24172-3-git-send-email-tim@xen.org> References: <1378988130-24172-1-git-send-email-tim@xen.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1378988130-24172-1-git-send-email-tim@xen.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Jacob Shin , Suravee Suthikulpanit List-Id: xen-devel@lists.xenproject.org The lock's not used for anything, and AFAICT no locking is needed since the IVRS tables are static after boot. Coverity CID 1087199 Signed-off-by: Tim Deegan Cc: Suravee Suthikulpanit Cc: Jacob Shin --- xen/drivers/passthrough/amd/iommu_intr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/xen/drivers/passthrough/amd/iommu_intr.c b/xen/drivers/passthrough/amd/iommu_intr.c index 831f92a..213f4d7 100644 --- a/xen/drivers/passthrough/amd/iommu_intr.c +++ b/xen/drivers/passthrough/amd/iommu_intr.c @@ -443,7 +443,6 @@ static int update_intremap_entry_from_msi_msg( * devices. */ - lock = get_intremap_lock(iommu->seg, alias_id); if ( ( req_id != alias_id ) && get_ivrs_mappings(iommu->seg)[alias_id].intremap_table != NULL ) { -- 1.7.10.4