summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/gsc/gsckbc.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/hppa/gsc/gsckbc.c
parenta730dedabc875f93e81898068b1cccdb9e45cb7c (diff)
More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...' where
obvious.
Diffstat (limited to 'sys/arch/hppa/gsc/gsckbc.c')
-rw-r--r--sys/arch/hppa/gsc/gsckbc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/hppa/gsc/gsckbc.c b/sys/arch/hppa/gsc/gsckbc.c
index d2817304bc9..0f52af3ccfa 100644
--- a/sys/arch/hppa/gsc/gsckbc.c
+++ b/sys/arch/hppa/gsc/gsckbc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gsckbc.c,v 1.9 2006/12/17 21:27:20 miod Exp $ */
+/* $OpenBSD: gsckbc.c,v 1.10 2007/10/01 16:11:19 krw Exp $ */
/*
* Copyright (c) 2003, Miodrag Vallat.
* All rights reserved.
@@ -392,8 +392,7 @@ gsckbc_attach(struct device *parent, struct device *self, void *aux)
sc->intr_establish = gsckbc_intr_establish;
- t = malloc(sizeof(struct pckbc_internal), M_DEVBUF, M_WAITOK);
- bzero(t, sizeof(struct pckbc_internal));
+ t = malloc(sizeof(*t), M_DEVBUF, M_WAITOK | M_ZERO);
t->t_iot = iot;
/* XXX it does not make sense to only map two ports here */
t->t_ioh_d = t->t_ioh_c = ioh;