summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/pckbc_ebus.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-10-01 16:11:20 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-10-01 16:11:20 +0000
commit1d3a2c7615ad6b5663e200fe3e8a475ef3203245 (patch)
treede1c38fdba408d50ca09e62ce6c6e40d21d28491 /sys/arch/sparc64/dev/pckbc_ebus.c
parenta730dedabc875f93e81898068b1cccdb9e45cb7c (diff)
More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...' where
obvious.
Diffstat (limited to 'sys/arch/sparc64/dev/pckbc_ebus.c')
-rw-r--r--sys/arch/sparc64/dev/pckbc_ebus.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sparc64/dev/pckbc_ebus.c b/sys/arch/sparc64/dev/pckbc_ebus.c
index 82e9a942213..f2e432987bd 100644
--- a/sys/arch/sparc64/dev/pckbc_ebus.c
+++ b/sys/arch/sparc64/dev/pckbc_ebus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pckbc_ebus.c,v 1.7 2004/11/02 21:17:39 miod Exp $ */
+/* $OpenBSD: pckbc_ebus.c,v 1.8 2007/10/01 16:11:19 krw Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -141,8 +141,7 @@ pckbc_ebus_attach(parent, self, aux)
return;
}
- t = malloc(sizeof(struct pckbc_internal), M_DEVBUF, M_NOWAIT);
- bzero(t, sizeof(struct pckbc_internal));
+ t = malloc(sizeof(*t), M_DEVBUF, M_NOWAIT | M_ZERO);
}
psc->intr_establish = pckbc_ebus_intr_establish;