summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/iommu.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-03-16 19:45:33 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-03-16 19:45:33 +0000
commit932526b9f20b41f7f875ae17b1139b17d7fdbe45 (patch)
tree38eb09254a17a289e9c50d9649db23bd01cd296d /sys/arch/sparc64/dev/iommu.c
parent4593c03f0e858cda27d068e16152f8a5383d954f (diff)
pmap = (conditional ? user_way : pmap = pmap_kernel());
doesn't need the second pmap =. "ok if you tested it" kettenis@
Diffstat (limited to 'sys/arch/sparc64/dev/iommu.c')
-rw-r--r--sys/arch/sparc64/dev/iommu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/iommu.c b/sys/arch/sparc64/dev/iommu.c
index 8da5a614f16..74a79567369 100644
--- a/sys/arch/sparc64/dev/iommu.c
+++ b/sys/arch/sparc64/dev/iommu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iommu.c,v 1.53 2009/01/02 20:01:45 kettenis Exp $ */
+/* $OpenBSD: iommu.c,v 1.54 2009/03/16 19:45:32 oga Exp $ */
/* $NetBSD: iommu.c,v 1.47 2002/02/08 20:03:45 eeh Exp $ */
/*
@@ -699,7 +699,7 @@ iommu_dvmamap_load(bus_dma_tag_t t, bus_dma_tag_t t0, bus_dmamap_t map,
boundary = map->_dm_boundary;
align = MAX(map->dm_segs[0]._ds_align, PAGE_SIZE);
- pmap = p ? p->p_vmspace->vm_map.pmap : pmap = pmap_kernel();
+ pmap = p ? p->p_vmspace->vm_map.pmap : pmap_kernel();
/* Count up the total number of pages we need */
iommu_iomap_clear_pages(ims);