diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-06-08 11:16:12 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-06-08 11:16:12 +0000 |
commit | 104f3e2c37cd6cd0dd2701832e0481c57381152c (patch) | |
tree | c0a2718574cb1b22e942a867cc33768109a6c380 | |
parent | f84d52bb3aaf47b56640b22a465ce7c0f492f3eb (diff) |
fix non standard/valid usage of ? : operator on amd64
as well, reminded by miod@
-rw-r--r-- | sys/arch/amd64/amd64/sg_dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/sg_dma.c b/sys/arch/amd64/amd64/sg_dma.c index c726660bd0a..86488e306d8 100644 --- a/sys/arch/amd64/amd64/sg_dma.c +++ b/sys/arch/amd64/amd64/sg_dma.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sg_dma.c,v 1.4 2009/06/07 02:30:34 oga Exp $ */ +/* $OpenBSD: sg_dma.c,v 1.5 2009/06/08 11:16:11 jsg Exp $ */ /* * Copyright (c) 2009 Owain G. Ainsworth <oga@openbsd.org> * @@ -228,7 +228,7 @@ sg_dmamap_load(bus_dma_tag_t t, bus_dmamap_t map, void *buf, 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 */ sg_iomap_clear_pages(spm); |