diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-03-08 20:54:46 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-03-08 20:54:46 +0000 |
commit | 3ddf5c04d114a466a1a1020cc65ef9aa2dbfb3e9 (patch) | |
tree | c3a02971548279e6de5067ae975cc1da167d7c8b /sys/arch/sgi/dev | |
parent | 82a1d7d5f4c16d3fb7a2ce88ec44281ba1f2e04d (diff) |
Correctly initialize all members of struct wsemuldisplaydev_attach_args
before attaching wsdisplay; it was turning out harmless but using more
cpu time for nothing than necessary.
ok deraadt@
Diffstat (limited to 'sys/arch/sgi/dev')
-rw-r--r-- | sys/arch/sgi/dev/gbe.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sgi/dev/gbe.c b/sys/arch/sgi/dev/gbe.c index bb1d77865cb..766aa3dc1cd 100644 --- a/sys/arch/sgi/dev/gbe.c +++ b/sys/arch/sgi/dev/gbe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gbe.c,v 1.11 2010/03/07 13:44:24 miod Exp $ */ +/* $OpenBSD: gbe.c,v 1.12 2010/03/08 20:54:42 miod Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Joel Sing <jsing@openbsd.org> @@ -244,6 +244,7 @@ gbe_attach(struct device *parent, struct device *self, void *aux) waa.scrdata = &gbe_screenlist; waa.accessops = &gbe_accessops; waa.accesscookie = &gbe_consdata; + waa.defaultscreens = 0; config_found(self, &waa, wsemuldisplaydevprint); return; @@ -413,6 +414,7 @@ gbe_attach(struct device *parent, struct device *self, void *aux) waa.scrdata = &gbe_screenlist; waa.accessops = &gbe_accessops; waa.accesscookie = screen; + waa.defaultscreens = 0; config_found(self, &waa, wsemuldisplaydevprint); return; |