diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-07-30 17:55:57 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-07-30 17:55:57 +0000 |
commit | 7911444e07f554d728e09e06a9eff21345d5044d (patch) | |
tree | 42c097c23f97c301688e91c5a4a81ef2cac86cb2 /sys/arch | |
parent | ed3071d142caf5427f67e2b421c2d17ccc34a82c (diff) |
simplify vgafb_mmap()
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/dev/vgafb.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/arch/sparc64/dev/vgafb.c b/sys/arch/sparc64/dev/vgafb.c index 2787e4e25c8..ced7fbe3f37 100644 --- a/sys/arch/sparc64/dev/vgafb.c +++ b/sys/arch/sparc64/dev/vgafb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vgafb.c,v 1.23 2002/07/25 19:19:55 jason Exp $ */ +/* $OpenBSD: vgafb.c,v 1.24 2002/07/30 17:55:56 jason Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -450,17 +450,13 @@ vgafb_mmap(v, off, prot) return (bus_space_mmap(sc->sc_mem_t, sc->sc_mmio_addr, off - sc->sc_mmio_addr, prot, BUS_SPACE_MAP_LINEAR)); - - return (-1); + break; case WSDISPLAYIO_MODE_DUMBFB: if (off >= 0 && off < sc->sc_mem_size) return (bus_space_mmap(sc->sc_mem_t, sc->sc_mem_addr, off, prot, BUS_SPACE_MAP_LINEAR)); - return (-1); - - default: - return (-1); + break; } return (-1); |