summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-10-29 18:30:22 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-10-29 18:30:22 +0000
commitc8811b30c30f967b1b25387b30bc1cfd2e619a84 (patch)
tree7f1dbc5c260750693c2baf5bd8bb4e20787c0a3f /sys/arch/mac68k
parente58a32400cb5873b3caa54fb806f18fd1d173388 (diff)
Since memory deallocation can't fail, remove the error return from
uvm_unmap, uvm_deallocate and a few other functions. Simplifies some code and reduces diff to the UBC branch.
Diffstat (limited to 'sys/arch/mac68k')
-rw-r--r--sys/arch/mac68k/dev/grf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/mac68k/dev/grf.c b/sys/arch/mac68k/dev/grf.c
index 7adae8ca1b3..bd4082449ec 100644
--- a/sys/arch/mac68k/dev/grf.c
+++ b/sys/arch/mac68k/dev/grf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grf.c,v 1.21 2002/03/14 01:26:35 millert Exp $ */
+/* $OpenBSD: grf.c,v 1.22 2002/10/29 18:30:21 art Exp $ */
/* $NetBSD: grf.c,v 1.41 1997/02/24 06:20:04 scottr Exp $ */
/*
@@ -391,7 +391,6 @@ grfunmap(dev, addr, p)
{
struct grf_softc *gp;
vm_size_t size;
- int rv;
gp = grf_cd.cd_devs[GRFUNIT(dev)];
@@ -405,8 +404,8 @@ grfunmap(dev, addr, p)
size = round_page(gp->sc_grfmode->fbsize);
- rv = uvm_unmap(&p->p_vmspace->vm_map, (vm_offset_t)addr,
+ uvm_unmap(&p->p_vmspace->vm_map, (vm_offset_t)addr,
(vm_offset_t)addr + size);
- return (rv == 0 ? 0 : EINVAL);
+ return (0);
}