summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-06-03 03:05:31 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-06-03 03:05:31 +0000
commitc83610475c84770d23c294b4c28295dc5476024a (patch)
tree9d2ae65ea2445133a8c5b68c86c7479d16d3c467 /sys/arch/sparc64
parent92b3ae8b0308f3650452e2330b93c537029b4326 (diff)
Remove some redundant code.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/dev/machfb.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/arch/sparc64/dev/machfb.c b/sys/arch/sparc64/dev/machfb.c
index 0968c7e6d0e..309e2df5bc1 100644
--- a/sys/arch/sparc64/dev/machfb.c
+++ b/sys/arch/sparc64/dev/machfb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machfb.c,v 1.3 2009/06/02 04:53:57 kettenis Exp $ */
+/* $OpenBSD: machfb.c,v 1.4 2009/06/03 03:05:30 kettenis Exp $ */
/*
* Copyright (c) 2009 Mark Kettenis.
@@ -188,8 +188,6 @@ struct machfb_softc {
u_int8_t sc_cmap_red[256];
u_int8_t sc_cmap_green[256];
u_int8_t sc_cmap_blue[256];
-
- int sc_ofhandle;
};
int machfb_ioctl(void *, u_long, caddr_t, int, struct proc *);
@@ -310,12 +308,7 @@ machfb_attach(struct device *parent, struct device *self, void *aux)
ri->ri_hw = sc;
fbwscons_init(&sc->sc_sunfb, RI_BSWAP, console);
-
- if (console) {
- sc->sc_ofhandle = OF_stdout();
- fbwscons_setcolormap(&sc->sc_sunfb, machfb_setcolor);
- }
-
+ fbwscons_setcolormap(&sc->sc_sunfb, machfb_setcolor);
sc->sc_mode = WSDISPLAYIO_MODE_EMUL;
machfb_init(sc);