diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-10-29 18:30:22 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-10-29 18:30:22 +0000 |
commit | c8811b30c30f967b1b25387b30bc1cfd2e619a84 (patch) | |
tree | 7f1dbc5c260750693c2baf5bd8bb4e20787c0a3f /sys/arch/hp300/dev | |
parent | e58a32400cb5873b3caa54fb806f18fd1d173388 (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/hp300/dev')
-rw-r--r-- | sys/arch/hp300/dev/grf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/hp300/dev/grf.c b/sys/arch/hp300/dev/grf.c index 4f3b20b93ec..fcd648f8ea2 100644 --- a/sys/arch/hp300/dev/grf.c +++ b/sys/arch/hp300/dev/grf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grf.c,v 1.19 2002/03/14 01:26:30 millert Exp $ */ +/* $OpenBSD: grf.c,v 1.20 2002/10/29 18:30:21 art Exp $ */ /* $NetBSD: grf.c,v 1.30 1998/08/20 08:33:41 kleink Exp $ */ /* @@ -654,7 +654,6 @@ grfunmap(dev, addr, p) struct grf_softc *sc = grf_cd.cd_devs[GRFUNIT(dev)]; struct grf_data *gp = sc->sc_data; vsize_t size; - int rv; #ifdef DEBUG if (grfdebug & GDB_MMAP) @@ -664,9 +663,9 @@ grfunmap(dev, addr, p) return(EINVAL); /* XXX: how do we deal with this? */ (void) (*gp->g_sw->gd_mode)(gp, GM_UNMAP, 0); size = round_page(gp->g_display.gd_regsize + gp->g_display.gd_fbsize); - rv = uvm_unmap(&p->p_vmspace->vm_map, (vaddr_t)addr, + uvm_unmap(&p->p_vmspace->vm_map, (vaddr_t)addr, (vaddr_t)addr + size); - return(rv == KERN_SUCCESS ? 0 : EINVAL); + return (0); } #ifdef COMPAT_HPUX |