lkml.org 
[lkml]   [2009]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 38/56] pci: Remove void casts
[Added maintainer CC]
Jack Stone wrote:
> Remove uneeded void casts
>
> Signed-Off-By: Jack Stone <jwjstone@fastmail.fm>
> ---
> 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);
>



\
 
 \ /
  Last update: 2009-04-09 12:21    [from the cache]
©2003-2011 Jasper Spaans