From: "Li, Zhen-Hua" Subject: [PATCH 1/1] x86/iommu: remove useless code Date: Mon, 17 Jun 2013 13:51:46 +0800 Message-ID: <1371448306-6884-1-git-send-email-zhen-hual@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: David Woodhouse , Vinod Koul , Dan Williams , iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: "Li, Zhen-Hua" List-Id: iommu@lists.linux-foundation.org From: "Li, Zhen-Hua" In intel-iommu.c, the function dma_pte_addr does not change the value of its parameter (pte). So it is useless if it nobody catches its return value. Signed-off-by: Li, Zhen-Hua --- drivers/iommu/intel-iommu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index b4f0e28..d9d378b 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -809,7 +809,6 @@ static struct dma_pte *pfn_to_dma_pte(struct dmar_domain *domain, /* Someone else set it while we were thinking; use theirs. */ free_pgtable_page(tmp_page); } else { - dma_pte_addr(pte); domain_flush_cache(domain, pte, sizeof(*pte)); } } -- 1.7.10.4