[Added maintainer CC] Jack Stone wrote: > Remove uneeded void casts > > Signed-Off-By: Jack Stone <jwjstone@xxxxxxxxxxx> > --- > drivers/pci/intel-iommu.c | 8 ++++---- > 1 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c > index fb3a3f3..c0dd267 100644 > --- a/drivers/pci/intel-iommu.c > +++ b/drivers/pci/intel-iommu.c > @@ -519,7 +519,7 @@ static struct context_entry * device_to_context_entry(struct intel_iommu *iommu, > root = &iommu->root_entry[bus]; > context = get_context_addr_from_root(root); > if (!context) { > - context = (struct context_entry *)alloc_pgtable_page(); > + context = alloc_pgtable_page(); > if (!context) { > spin_unlock_irqrestore(&iommu->lock, flags); > return NULL; > @@ -789,7 +789,7 @@ static int iommu_alloc_root_entry(struct intel_iommu *iommu) > struct root_entry *root; > unsigned long flags; > > - root = (struct root_entry *)alloc_pgtable_page(); > + root = alloc_pgtable_page(); > if (!root) > return -ENOMEM; > > @@ -1290,7 +1290,7 @@ static int domain_init(struct dmar_domain *domain, int guest_width) > domain->iommu_count = 1; > > /* always allocate the top pgd */ > - domain->pgd = (struct dma_pte *)alloc_pgtable_page(); > + domain->pgd = alloc_pgtable_page(); > if (!domain->pgd) > return -ENOMEM; > __iommu_flush_cache(iommu, domain->pgd, PAGE_SIZE); > @@ -3019,7 +3019,7 @@ static int vm_domain_init(struct dmar_domain *domain, int guest_width) > domain->max_addr = 0; > > /* always allocate the top pgd */ > - domain->pgd = (struct dma_pte *)alloc_pgtable_page(); > + domain->pgd = alloc_pgtable_page(); > if (!domain->pgd) > return -ENOMEM; > domain_flush_cache(domain, domain->pgd, PAGE_SIZE); > -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html